标签:des style blog http color io os 使用 ar
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4500 Accepted Submission(s): 2951
n为m+1倍数时候胜,否则败。
1 #include <stdio.h> 2 #include <string.h> 3 #include <iostream> 4 #include <algorithm> 5 using namespace std; 6 7 int main() 8 { 9 int n,m; 10 int T; 11 scanf("%d",&T); 12 while(T--) 13 { 14 scanf("%d%d",&n,&m); 15 if(n%(m+1) == 0)printf("second\n"); 16 else printf("first\n"); 17 } 18 return 0; 19 }
标签:des style blog http color io os 使用 ar
原文地址:http://www.cnblogs.com/M-D-LUFFI/p/3997832.html