| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 315779 | LCF12345 | 守序数 T4 | C++ | Time Limit Exceeded | 1000 MS | 688 KB | 321 | 2026-04-12 17:08:02 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,cnt=0,m=1; cin>>n; while(cnt!=n){ int s=m; int x=0,y=0; while(s%10-s%100<=1||s%10-s%100>=-1&&s>0){ s/=10; x++; } s=m; while(s>0){ s/=10; y++; } if(x==y){ cnt++; } m++; } cout<<m; return 0; }