Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
87358 sh25_zhangzh 石头剪子布 C++ 通过 0 MS 252 KB 464 2026-04-17 14:32:15

Tests(1/1):


#include<iostream> #include<string> using namespace std; int main() { int n; cin>>n; for(int i=0;i<n;i++) { string p1,p2; cin>>p1>>p2; if(p1==p2) { printf("Tie\n"); } else if ((p1=="Rock"&&p2=="Scissors")|| (p1=="Scissors"&&p2=="Paper")|| (p1=="Paper"&&p2=="Rock")) { cout<<"Player1"<<endl; } else { cout <<"Player2"<< endl; } } }


测评信息: