codeforces #165 div2

 
// div2 A
#include 
int main(){
    int i,j,n,T;
    scanf("%d",&T);
    while(T--){
        scanf("%d",&n);
        if(n>=180||n<=0){
            printf("NO\n");
            continue;
        }
        if (360%(180-n)==0) printf("YES\n");
        else printf("NO\n");
    }
    return 0;
}
 
// div2 B
#include
int x[100005];
int main(){
   // freopen("input.txt","r",stdin);
  int n,i;
  scanf("%d",&n);
  int sum=0;
  for(i=0;i=0;i--)
     if(x[i]>x[i+1])
           break;
  printf("%d\n",i+1);

  return 0;
}



你可能感兴趣的:(【编程题】)