Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
121870 鲁博睿 回文数 C++ Accepted 1 MS 272 KB 250 2025-06-08 17:11:18

Tests(10/10):


Code:

#include <bits/stdc++.h> ? using namespace std; int main() { int a,b,c,d,r=0; cin>>a; c=a; while(a!=0){ b=a%10; r=r*10+b; a=a/10; } if(r==c){ cout<<"YES"<<endl; } else{ cout<<"NO"<<endl; } return 0; }