Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
7877 刘逸杭 回文数 C++ Accepted 0 MS 264 KB 238 2025-05-24 19:40:12

Tests(10/10):


Code:

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