Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
1960 | 莫业祁 | 11石头剪刀布 | C++ | Wrong Answer | 0 MS | 268 KB | 481 | 2023-12-02 18:12:47 |
# 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:2"; } else{ cout<<"winner:1"; } return 0; }
------Input------
1 2
------Answer-----
winner:1
------Your output-----
winner:2