Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
147353 | Microsoft | 逆序数 | C++ | Accepted | 100 | 0 MS | 244 KB | 236 | 2024-05-18 14:47:35 |
#include <iostream> #include <string> using namespace std; int main() { int n; cin >> n; string str = to_string(n); for(int i = str.length() - 1; i >= 0; i--){ cout << str[i]; } return 0; }