Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
45543 yuzhengxun 新数 C++ 通过 0 MS 244 KB 182 2024-04-14 20:40:45

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


测评信息: