这题的单词是一组一行,我一直无法换行,求教。
#include<bits/stdc++.h> using namespace std; int main() { int T; cin>>T; while(T--) { string s; while(cin>>s) { reverse(s.begin(),s.end()); cout<<s<<" "; } } return 0; }