第四届图灵赛-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; }
相关文章推荐
- 图灵杯-第四届“图灵杯”NEUQ-ACM 程序设计竞赛-F-一道简单的递推题
- 一道简单而又容易出错的题目
- 一道简单测试题目引发的感想!
- 一道简单的但是经典的动态规划题目
- hdu-1597一道简单的题目主要是注意Tle
- 一道简单的ACM题目讨论
- 一道简单题目的复杂算法
- 关于short的一道简单题目
- 一道更简单的题目和一个重大发现
- 一道简单的编程题目
- 一道简单的面试题目:输入1234输出1_2_3_4
- 【题目22】传说中的微软面试题一道(简单题)
- 一道简单的ACM题目学到的东西
- 一道简单的题目
- 一道简单而又容易出错的题目
- 百度笔试题2005题目大致是这样的: 第一部分选择题: 有几道网络相关的题目,巨简单,比如第一题是TCP、RIP、IP、FTP中哪个协议是传输层的......。有一道linux的 chown使用题目。其他的全是数据结构的题目!什么链,表
- 并查集的一道题目;发现可以用并查集就简单了;
- 今天做了一道的题目,简单是因为程序写起来简单,但是感觉题目不错;
- 一道简单的C++题目
- zoj 1115题比较简单的一道题目。