#include <bits/stdc++.h> using namespace std; int main() { int n; while(cin>>n){ string s; vector<string>v; while(cin>>s) v.push_back(s); for(auto i =v.rbegin();i!=v.rend();i++) cout<<*i<<" "; cout<<endl; } } // 64 位输出请用 printf("%lld")
longlong真不如string