Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
70032 袁嘉蔓 回文数 C++ Accepted 1 MS 272 KB 229 2024-04-13 11:39:32

Tests(10/10):


Code:

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