#include <iostream>
#include <string.h>
using namespace std;
int main() {
char t[100][100] = {" "};
int n = 0;
while (cin >> t[n]) {
n++;
}
for (int i = n - 1; i >= 0; i--)//逆序输出字符串
printf("%s ", t[i]);
cout << endl;
return 0;
}
poj 单词倒排
最新推荐文章于 2022-06-11 21:46:08 发布