Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
45569 | WZH | 新数 | C++ | Compile Error | 0 MS | 0 KB | 171 | 2024-04-15 20:32:50 |
#include<bits/stdc++.h> using namespace std; int main() { string n; cin>>n; if(prev_permutation(n.end())&&n[0]!=0){ cout<<n; } else cout<<-1; return 0; }