#include<iostream>
#include<stack>
using namespace std;
int main()
{
stack<string> v;
string s;
while(cin >> s)
{
v.push(s);
}
cout << v.top();
v.pop();
while(!v.empty())
{
cout << " " << v.top();
v.pop();
}
return 0;
}
PAT basic 1009
最新推荐文章于 2021-10-22 16:41:03 发布