Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
101696 李雨昊 找路径 C++ Wrong Answer 0 MS 272 KB 416 2024-12-15 19:26:05

Tests(0/4):


Code:

#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; }


Run Info:

------Input------
20 20
------Answer-----
985525432
------Your output-----
winner:2