| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 74165 | 陈思雨 | 位运算 | C++ | Accepted | 100 | 0 MS | 260 KB | 300 | 2023-05-20 17:20:15 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a[100010],m=0,ans=0; cin>>n; for(int i=1;n!=0;i++){ a[i]=n%10; n/=10; m++; } for(int i=1;i<=m;i++){ if(a[i]!=0){ a[i]--; break; } } for(int i=m;i>=1;i--) ans=ans*10+a[i]; cout<<ans; return 0; }