#include<stdio.h> #include<cstdlib> #include<cmath> #include<iostream> #include<algorithm> #include<cstring> using namespace std; typedef long long ll; int main(){ char str[120]; gets(str); for(int i=strlen(str)-1;i>=0;i--){ printf("%c", str[i]); } printf("\n"); return 0; } |
Double click to view unformatted code.