| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 41143 | jiabokai | 数位递增数 | C++ | Accepted | 0 MS | 256 KB | 298 | 2024-02-19 17:08:20 |
#include<bits/stdc++.h> using namespace std; bool increase(int m){ int q=m%10; while(m){ m/=10; if(m%10>q){ return false; } } return true; } int main() { int n,cnt=0; cin>>n; for(int i=10;i<=n;i++){ if(increase(i)){ cnt++; } } cout<<cnt; return 0; }