-
个人简介
”我谁也不是,也不想成为任何人。“ #include<bits/stdc++.h> using namespace std; int main() { int a = 0, b = 0,s=0; int c, d, e = 500, f = 500; cout << "Ready Go!" << endl << "玩家1:玩家2=0:0" << endl << "玩家1剩余:500 玩家2剩余:500" << endl; for (int i = 1; i <= 10; i++) { cout << "第" << i << "局" << endl; cin >> c; if(c<0||c>e) { cout<<"玩家1,你个废物!"<<endl; cout<<"玩家1,你个败类!"<<endl; cout<<"玩家1,你个社会的蛀虫!"<<endl; cout<<"玩家1,你个丧尽天良的东西!"<<endl; cout<<"玩家1,你个臭不要脸的玩意儿!"<<endl; cout<<"Shit!Go away!"<<endl; cout<<"玩家1,你个狗!狗!狗!狗!狗!"<<endl; cout<<endl; s=1; break; } for (int i = 1; i <= 30; i++) { cout << endl; } cout << "第" << i << "局" << endl; cin >> d; if(d<0||d>e) { cout<<"玩家2,你个废物!"<<endl; cout<<"玩家2,你个败类!"<<endl; cout<<"玩家2,你个社会的蛀虫!"<<endl; cout<<"玩家2,你个丧尽天良的东西!"<<endl; cout<<"玩家2,你个臭不要脸的玩意儿!"<<endl; cout<<"Shit!Go away!"<<endl; cout<<"玩家2,你个狗!狗!狗!狗!狗!"<<endl; cout<<endl; s=2; break; } if (c > d) a++; else if (d > c) b++; cout << "玩家1:玩家2 = " << a << ":" << b << endl; cout << "玩家1剩余:" << e - c << " " << "玩家2剩余:" << f - d << endl; e = e - c; f = f - d; } if(s0){ if (a > b) cout << "玩家1胜利!"; else if (a < b) cout << "玩家2胜利!"; else if (a == b) { if (e > f) cout << "玩家1胜利!"; else if (e < f) cout << "玩家2胜利!"; else cout << "平局"; } } else if(s1) cout<<"玩家2胜利!"; else cout<<"玩家1胜利!"; return 0; }
-
最近活动