摘要:
View Code 1 #include<stdio.h> 2 int a[105]; 3 int main() 4 { 5 int t,i,j,n,max,thismax;//,num=0;//p1,p2; 6 scanf("%d",&t); 7 while(t--) 8 { 9 scanf("%d",&n);10 //num++;11 //p1=1;p2=1;12 for(i=0;i<n;i++)13 scanf("%d",&a[i]);14 max=a... 阅读全文
摘要:
View Code #include<stdio.h>int main(){ int n,m,k,t,left; scanf("%d",&t); while(t--) { scanf("%d%d",&n,&m); k=m+1; left=n%k; if(left>0) printf("first\n"); else if(left==0) printf("second\n"); } return 0;}知道一点就好:... 阅读全文