| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74010 | 文 | 15反转数字 | C++ | Time Limit Exceeded | 1000 MS | 276 KB | 272 | 2024-05-20 22:35:55 |
#include<iostream> using namespace std; /** * OJ-1352 */ int main(){ int num; cin>>num; int tmp; tmp=num%10; while(1) { if(tmp!=0) break; else num/=10; } while(num) { tmp = num % 10; cout<<tmp; num/=10; } return 0; }