| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 79202 | 杜奕辰 | 回文数 | C++ | Accepted | 1 MS | 272 KB | 276 | 2024-06-30 15:12:43 |
#include<bits/stdc++.h> using namespace std; int main() { int n; cin>>n; int r=0; int a=n; if(n<0) { cout<<"-"; n=n*-1; } while(n!=0) { int yu=n%10; r=r*10+yu; n/=10; } if(r==a){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }