竞赛
考级
这道题可以偷鸡,因为只做了1个测试点。要想偷鸡的话只要输出"hello I am your teacher"就可以了。 正常的方法是先定义string类型变量再用getline()函数输入,或者像我这样:
毛奕程
136****9647
acgoacgo
黑客_天之神_ZDZL_zsy
#include<iostream> using namespace std; int main(){ string w; getline(cin,w); cout<<w; return 0; }
石珠里的大黑
151****9879
复仇者_Y38════╋━➢
using namespace std; int main(){ string a; while(cin>>a){ cout<<a<<' '; } return 0; }
135****3716
#include<bits/stdc++.h> using namespace std; int main(){ string w; getline(cin,w); cout<<w; return 0; }
139****7971