Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70033 刘济玮 回文数 C++ Wrong Answer 1 MS 268 KB 310 2024-04-13 11:39:37

Tests(3/10):


Code:

#include<iostream> using namespace std; int main() { int n; int r=n; cin>>n; int ans=0; while(n!=0){ int yu=n%10; n/=10; ans=ans*10+yu; } if(ans==r){ cout<<"YES"; }else{ cout<<"NO"; } return 0; }


Run Info:

------Input------
121
------Answer-----
YES
------Your output-----
NO