摘要:
题意:Nimm Game思路:Nimm Game#include#includeusing namespace std;int main(){ int m,a[128],i,sum,ans; while(~scanf("%d",&m)&&m){ sum=0; ... 阅读全文
摘要:
取石子游戏 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7101 Accepted Submission(s): 3888 Problem D 阅读全文
摘要:
题意:从0开始捐款,每次不超过m元,首先达到n元的获胜思路:等同于从n开始,每次取不超过m,首先达到0的获胜。(Bash Game)#include#includeusing namespace std;int main(){ int c,n,m; scanf("%d",&c); ... 阅读全文