您的位置:首页 > 其它

第四届图灵赛-I、一道不简单的题目(水,读行)

2017-06-12 00:24 204 查看



题目描述

这是一道拼手速的题!
你在跟acmclub机器人对话。对它说:“Is this NEUQ?”,它会回答你:“Yes, welcome to NEUQ.”。对它说:“I have some question!”,它会回复:“What can I do for you?”。


输入

输入为一句话。


输出

输出也为一句话。


样例输入

Is this NEUQ?


样例输出

Yes, welcome to NEUQ.


#include <bits/stdc++.h>
using namespace std;

int main()
{
string str;
while(getline(cin, str))
{
if(str=="I have some question!")
cout<<"What can I do for you?"<<endl;
else
cout <<"Yes, welcome to NEUQ."<<endl;
//     char c=getchar();
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: