【CodeForces】610A - Pasha and Stick(水)
来源:互联网 发布:淘宝地垫 编辑:程序博客网 时间:2024/05/21 20:41
点击打开题目
注意判断正方形就行了。
代码如下:
#include <cstdio>int main(){int n;int ant;while (~scanf ("%d",&n)){if (n & 1){printf ("0\n");continue;}n >>= 1;ant = n >> 1;int ans = 0;if (n & 1)printf ("%d\n",ant);elseprintf ("%d\n",ant-1);}return 0;}
0 0
- CodeForces 610 A. Pasha and Stick(水~)
- CodeForces 610A Pasha and Stick (水)
- 【CodeForces】610A - Pasha and Stick(水)
- 【codeforces】-610A-Pasha and Stick(水)
- Codeforces 610A Pasha and Stick 【水题】
- codeforces 610A Pasha and Stick
- 【CodeForces】[610A]Pasha and Stick
- Pasha and Stick Codeforces 610A
- CodeForces 610A Pasha and Stick
- Codeforces 610A Pasha and Stick
- 【CodeForces 610A】Pasha and Stick
- 【codeforces 610A】Pasha and Stick
- 610A Pasha and Stick
- 【codeforces】Pasha and Stick
- 【codeforces】Pasha and Stick
- A. Pasha and Stick
- Codeforces Round #337 (Div. 2) A. Pasha and Stick (水)
- codefroces#337 A Pasha and Stick【思维】
- hdu 5723 Abandoned country(2016 Multi-University Training Contest 1——最小生成树+深搜)
- HDD is Outdated Technology
- 从入门到精通:让人又爱又恨的注解(一)
- Andriod File 路径转换为Uri
- 嵌入式系统上C++调用C语言接口代码链接时找不到C函数问题处理
- 【CodeForces】610A - Pasha and Stick(水)
- UVA - 11044 Searching for Nessy
- HDU 1312 Red and Black 红与黑 搜索 dfs bfs
- Android_实现获取手机内apk并分享的功能
- Junit测试出现空指针异常
- Android 中打开相册图片 使用相机拍摄并存储照片
- Android的savedInstanceState
- JAVA随机生成中文姓名,性别,Email,手机号,住址
- 百练 4155 鸣人和佐助