Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
21917 | LeoWang | 数字反转 | C++ | Accepted | 0 MS | 244 KB | 178 | 2023-07-02 21:28:20 |
#include<iostream> #include<cstring> using namespace std; int main() { char str[101]; gets(str); for(int i=strlen(str)-1;i>=0;i--){ cout<<str[i]; } return 0; }