标签:des blog io ar os on 数据 div log
3 a1b2c3d4 Linle@ACM ^~^@^@!%
NO YES NO
#include<stdio.h> int main() { int n,a,b,c,d,i; char t; while(scanf("%d",&n)!=EOF) { getchar(); while(n--) { a=0;b=0;c=0;d=0; i=0; while(t=getchar()) { if(t==‘\n‘) break; i++; if(t>=‘0‘&&t<=‘9‘) {a++; continue;} else if(t>=‘a‘&&t<=‘z‘) {b++; continue;} else if(t>=‘A‘&&t<=‘Z‘) {c++; continue;} else d++; } a=a>0?1:0; b=b>0?1:0; c=c>0?1:0; d=d>0?1:0; if((a+b+c+d)>=3&&i>=8&&i<=16) printf("YES\n"); else printf("NO\n"); } } }
标签:des blog io ar os on 数据 div log
原文地址:http://www.cnblogs.com/tianyong/p/4126971.html