题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4713
题目很水,但是注意,越是简单的题目越应该关注细节,比如说输出上的陷阱(有空格),不要想当然的就粗心大意的写了。
AC代码:
#include <iostream>
using namespace std;
int main()
{
int test;
string sa,sb,sc;
cin>>test;
while(test--)
{
cin>>sa>>sb>>sc;
cout<<sb<<" will survive"<<endl;
}
return 0;
}
[ZOJ 3610] Yet Another Story of Rock-paper-scissors
原文:https://www.cnblogs.com/youpeng/p/10807443.html