http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3355 #include "stdio.h" void main() { int n,i,t[10000]={0}; float a,s,b,c; scanf("%d",&n); for (i=0;i<n;i++) { scanf("%f%f%f",&a,&b,&c); if(3/a+3/b+3/c<3) t[i]=1; } for (i=0;i<n;i++) { if(t[i]) printf("Aha/n"); else printf("No way/n"); } }