Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
112848 | 汤 | 回文数 | C++ | Accepted | 1 MS | 268 KB | 236 | 2025-03-14 19:16:08 |
#include<bits/stdc++.h> using namespace std; int main() { int i,n,sum=0,t; cin>>n; t=n; while(n!=0) { sum=sum*10+n%10; n/=10; } if(t==sum) { cout<<"YES"; } else { cout<<"NO"; } return 0; }