HDU 5665 Lucky
来源:互联网 发布:什么赚钱软件最好 编辑:程序博客网 时间:2024/06/07 03:49
Problem Description
Input
Output
Sample Input
112
Sample Output
NO
简单题,判断有没有0和1即可
#pragma comment(linker, "/STACK:102400000,102400000")#include<map>#include<set>#include<cmath>#include<queue>#include<stack>#include<bitset>#include<cstdio>#include<string>#include<cstring>#include<iostream>#include<algorithm>#include<functional>using namespace std;typedef long long LL;const int low(int x) { return x&-x; }const int INF = 0x7FFFFFFF;const int mod = 1e9 + 7;const int maxn = 2e5 + 10;int T, n, m;int main(){ scanf("%d", &T); while (T--) { scanf("%d", &n); int f1 = 0, f2 = 0, x; while (n--) { scanf("%d", &x); if (x == 0) f1 = 1; if (x == 1) f2 = 1; } printf("%s\n", f1&&f2 ? "YES" : "NO"); } return 0;}
0 0
- HDU 5665 Lucky
- hdu--5665--Lucky
- HDU 5665 Lucky
- hdu 5665 Lucky【水题】
- HDU 5665:Lucky【水】
- HDU 5665 lucky
- HDU - 5665 Lucky (技巧)
- HDU 5665 Lucky(思维题)【BC】
- hdu 3346 Lucky Number
- hdu 3346 Lucky Number
- HDU 3346 Lucky Number
- HDU 4937 Lucky Number
- HDU 4937 Lucky Number
- hdu 4937 Lucky Number
- HDU-4937-Lucky Number
- HDU - 4937 Lucky Number
- hdu 4937 Lucky Number
- HDU 4937 Lucky Number
- 简单脱壳教程笔记(11) --- 脱WinUpack加的壳
- UVA 11925 Generating Permutations 逆向思维
- Java中文件的操作
- Java基础复习(四)
- S5PV210的ADC控制器
- HDU 5665 Lucky
- C#序列化与反序列化总结
- Ubuntu安装hadoop2.7.1----伪分布搭建
- view的分层显示
- 高斯消元模板
- 获得activity的rootview
- UVA 1001 Say Cheese(最短路)
- 很奇怪的bootclasspath参数 同文章里说的一样,也没有搞清楚 为什么需要显式地指定一下-bootclasspath
- HDU 5666 Segment