提交时间:2025-08-22 15:10:30

运行 ID: 341153

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,s,c=0; cin>>n; for(int i=1;i<=n;i++){ m=i; s=0; while(m){ s=s*10+m%10; m/=10; } if(i==s) c+=1; } cout<<"yes"; if(c==0) cout<<"no"; return 0; }