Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111852 | 谢佳辰 | 回文数 | C++ | Wrong Answer | 1 MS | 268 KB | 224 | 2025-03-07 14:38:39 |
#include <iostream> using namespace std; int main(){ int n,a,x=0,s; cin>>n; s=n; while(n!=0){ a=n%10; x=x*10+a; n=n/10; } if(x==s){ cout<<"yes"; } if(x!=s){ cout<<"no"; } }
------Input------
4503
------Answer-----
NO
------Your output-----
no