题目链接: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;
}

相关文章:

  • 2022-12-23
  • 2021-05-26
  • 2022-01-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-07-28
猜你喜欢
  • 2021-08-05
  • 2021-09-29
  • 2021-09-05
  • 2021-11-20
  • 2022-12-23
  • 2021-07-31
  • 2022-02-18
相关资源
相似解决方案