标签:des style blog color java 使用 os strong
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 6434 Accepted Submission(s): 4294
裸的巴什博弈。
1 #include <iostream> 2 #include <cstdio> 3 #include <algorithm> 4 #include <string> 5 #include <cstring> 6 using namespace std; 7 int T, n, m; 8 int main(){ 9 scanf("%d", &T); 10 while(T--){ 11 scanf("%d%d", &n, &m); 12 if(m>=n) printf("first\n"); 13 else{ 14 if(n%(m+1)==0) printf("second\n"); 15 else printf("first\n"); 16 } 17 } 18 19 return 0; 20 }
hdu 1846 Brave Game (巴什博弈 最简单的博弈水题),布布扣,bubuko.com
hdu 1846 Brave Game (巴什博弈 最简单的博弈水题)
标签:des style blog color java 使用 os strong
原文地址:http://www.cnblogs.com/titicia/p/3885757.html