HDU 5882 Balanced Game
2016-09-19 22:33
393 查看
简单题。
#pragma comment(linker, "/STACK:1024000000,1024000000") #include<cstdio> #include<cstring> #include<cmath> #include<algorithm> #include<vector> #include<map> #include<set> #include<queue> #include<stack> #include<iostream> using namespace std; typedef long long LL; const double pi=acos(-1.0),eps=1e-6; void File() { freopen("D:\\in.txt","r",stdin); freopen("D:\\out.txt","w",stdout); } template <class T> inline void read(T &x) { char c=getchar(); x=0; while(!isdigit(c)) c=getchar(); while(isdigit(c)) {x=x*10+c-'0'; c=getchar();} } int main() { int T,n; scanf("%d",&T); while(T--) { scanf("%d",&n); if(n%2==0) printf("Bad\n"); else printf("Balanced\n"); } return 0; }
相关文章推荐
- [javaEE] 反射-通过反射了解集合泛型本质
- 判断一个点是否在三角形内
- 性能测试工具总结
- 抽象类与接口的思考
- Makefile中指示符“include”、“-include”和“sinclude”的区别
- 用Spring MVC开发简单的Web应用
- C与C艹的内存管理方式
- HDU 5884 Sort
- Lock接口中的几个方法讨论
- 你只看到别人表面的光鲜,却看不到他们背后的付出和努力
- HDU5112【水】
- 反转单链表的几种方法
- linux系统分区day0919
- 实验二:跨交换机实现VLAN
- 2016 ACM/ICPC Asia Regional Shenyang Online HDU 5894 hannnnah_j’s Biological Test
- 21、在选择的时候跳到另一页面上,选择男女,然后提交表单内容
- Linux Linux程序练习十(网络编程大文件发送)
- 关于dubbo服务的xml配置文件报错的问题
- 内存对齐
- ios 关于PNG和JPEG格式压缩