Fancy Fence
http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=1486&cid=1148
View Code
1 #include<stdio.h> 2 int main() 3 { 4 int t, a ; 5 scanf("%d", &t) ; 6 while(t--) 7 { 8 scanf("%d", &a) ; 9 double m = 1.0*360/(180-a) ; 10 int n = 360/(180-a) ; 11 if(m!=n) 12 printf("NO\n") ; 13 else printf("YES\n") ; 14 } 15 return 0 ; 16 } 17
哎呀,竟然想不到