Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101694 | 李雨昊 | 找路径 | C++ | Wrong Answer | 1 MS | 268 KB | 416 | 2024-12-15 19:25:19 |
#include<bits/stdc++.h> using namespace std; int main() { //这里规定石头的代表数字是0,剪刀是1,布是2 int x,y; cin>>x>>y; if(x==0) { if(y==1) cout<<"winner:1"; else cout<<"winner:2"; } else if(x==1) { if(y==2) cout<<"winner:1"; else cout<<"winner:2"; } else { if(y==0) cout<<"winner:1"; else cout<<"winner:2"; } return 0; }
------Input------
20 20
------Answer-----
985525432
------Your output-----
winner:2