7 条题解
-
0
#include #include #include using namespace std;
int main() { string input; getline(cin, input);
stack<string> wordStack; stringstream ss(input); string word; while (ss >> word) { wordStack.push(word); } bool first = true; while (!wordStack.empty()) { if (!first) cout << " "; first = false; cout << wordStack.top(); wordStack.pop(); } return 0;
}
信息
- ID
- 1093
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 5
- 标签
- 递交数
- 537
- 已通过
- 216
- 上传者