Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
104488 陈铎文 11石头剪刀布 C++ Accepted 1 MS 276 KB 435 2025-01-05 11:03:20

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b; cin>>a>>b; cout<<"winner:"; if(a==0){ if(b==1) cout<<"1"; else cout<<"2"; } else if(a==1){ if(b==2) cout<<"1"; else cout<<"2"; } else{ if(b==0) cout<<"1"; else cout<<"2"; } return 0; }