标签:style blog io color sp on div log bs
巴什博弈:
1 #include<cstdio> 2 int main() 3 { 4 int t, n, m; 5 scanf("%d", &t); 6 while (t--){ 7 scanf("%d%d", &n, &m); 8 if (n <= m) 9 printf("first\n"); 10 else if (n % (m + 1) == 0) 11 printf("second\n"); 12 else 13 printf("first\n"); 14 } 15 return 0; 16 }
标签:style blog io color sp on div log bs
原文地址:http://www.cnblogs.com/-Unc/p/4151844.html