标签:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
#include <cstdio> #include <iostream> using namespace std; int main () { int C, n, m; scanf("%d", &C); while(C--) { scanf("%d%d", &n, &m); printf("%s\n", n%(m+1)==0 ? "second":"first"); } return 0; }
标签:
原文地址:http://www.cnblogs.com/AcIsFun/p/5369806.html