Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
45545 ☩Deutschland☩ 新数 C++ 通过 0 MS 248 KB 182 2024-04-14 20:42:34

Tests(1/1):


#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; }


测评信息: