标签:limits -- can 英文名称 inpu 大学 std main int
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 15279 Accepted Submission(s): 10446
C/C++:
1 #include <map> 2 #include <queue> 3 #include <cmath> 4 #include <vector> 5 #include <string> 6 #include <cstdio> 7 #include <cstring> 8 #include <climits> 9 #include <iostream> 10 #include <algorithm> 11 #define INF 0x3f3f3f3f 12 #define LL long long 13 using namespace std; 14 15 int t, n, m; 16 17 int main() 18 { 19 scanf("%d", &t); 20 while (t --) 21 { 22 scanf("%d%d", &n, &m); 23 if (n % (m + 1) == 0) 24 printf("second\n"); 25 else 26 printf("first\n"); 27 } 28 return 0; 29 }
标签:limits -- can 英文名称 inpu 大学 std main int
原文地址:https://www.cnblogs.com/GetcharZp/p/9557862.html