Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101977 | 殷佳雨萱 | 11石头剪刀布 | C++ | Accepted | 1 MS | 272 KB | 241 | 2024-12-21 10:51:43 |
#include <iostream> using namespace std; int main(){ int y,t; cin>>y>>t; if(y==0 && t==1 || y==1 && t==2 || y==2 && t==0) cout<<"winner:1"; else if(y==1 && t==0 || y==2 && t==1 || y==0 && t==2) cout<<"winner:2"; return 0; }