| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 45540 | jiabokai | 新数 | C++ | Accepted | 1 MS | 248 KB | 182 | 2024-04-14 20:40:23 |
#include<bits/stdc++.h> using namespace std; int main(){ string n; cin>>n; if(prev_permutation(n.begin(),n.end())&&n[0]!=0){ cout<<n; } else cout<<-1; return 0; }