Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
45538 徐若宸 新数 C++ 通过 0 MS 248 KB 171 2024-04-14 20:39: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"; }


测评信息: