| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147134 | 孔声豪 | 回文数 | C++ | Wrong Answer | 1 MS | 272 KB | 286 | 2026-02-03 10:43:59 |
#include <iostream> using namespace std; int main(){ int n,f,r,a; cin>>f; n==f; while(n!=0){ a=n%10; r=r*10+a; n/=10; } if(f==r){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }
------Input------
121
------Answer-----
YES
------Your output-----
NO