提交时间:2024-03-27 20:40:17

运行 ID: 44078

#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; }