Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
91856 刘珩宇 回文数 C++ Accepted 1 MS 272 KB 195 2024-09-22 18:56:44

Tests(10/10):


Code:

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