Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152267 赵奕杰 回文数 C++ Time Limit Exceeded 1000 MS 260 KB 208 2026-04-24 20:08:05

Tests(0/10):


Code:

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