Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
8068 先明缜 11石头剪刀布 C++ Accepted 0 MS 256 KB 309 2025-06-12 20:19:01

Tests(10/10):


Code:

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