Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1961 | 莫业祁 | 11石头剪刀布 | C++ | Wrong Answer | 0 MS | 252 KB | 481 | 2023-12-02 18:13:37 |
# include<iostream> using namespace std; int main(){ int a,b; bool c=false; cin>>a>>b; switch(a){ case 0: if(b=1) c=true; case 1: if(b=2) c=true; case 2: if(b=0) c=true; } if(c=true){ cout<<"winner:1"; } else{ cout<<"winner:2"; } return 0; }
------Input------
2 1
------Answer-----
winner:2
------Your output-----
winner:1