#include <iostream>
#include <stack>
#include <string>
using namespace std;
int main()
{
stack<string> s;
string sp;
bool flag=false;
while(cin>>sp)
s.push(sp);
while(!s.empty())
{
if(flag)
cout<<" ";
else
flag=true;
cout<<s.top();
s.pop();
}
return 0;
}
字符串-07. 说反话-加强版 (20)
最新推荐文章于 2022-02-04 17:43:26 发布