提交时间:2024-03-27 20:35:32

运行 ID: 44075

#include<bits/stdc++.h> using namespace std; int main(){ char s[100]; int cnt=0; while(cin>>s[cnt++]); for(int i=cnt-1;i>=0;i++){ cout<<s[i]; } return 0; }