mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-27 14:16:28 +00:00
775. 倒排单词
https://www.acwing.com/problem/content/submission/code_detail/6845818/
This commit is contained in:
parent
cc3f457314
commit
33369cf3dc
14
AcWing/775/775.cpp
Normal file
14
AcWing/775/775.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
string s;
|
||||
vector<string> c;
|
||||
while (cin >> s) c.push_back(s);
|
||||
reverse(c.begin(), c.end());
|
||||
for (auto i : c) {
|
||||
cout << i << ' ';
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user