Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101987 | 李佳璟 | 11石头剪刀布 | C++ | Wrong Answer | 1 MS | 272 KB | 426 | 2024-12-21 10:59:57 |
#include<bits/stdc++.h> using namespace std; int main(){ int x,y,a,b,c; cin>>x>>y; a = 0; b = 1; c = 2; if(x==a && y==b){ cout<<"winner:1"; } else if(x==b && y==c){ cout<<"winner:1"; } else if(x==b && y==a){ cout<<"winner:2"; } else if(x==c && y==b){ cout<<"winner:2"; } else if(x==a && y==b){ cout<<"winner:1"; } else if(x==b && y==a){ cout<<"winner:2"; } return 0; }
------Input------
0 2
------Answer-----
winner:2
------Your output-----