Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
19703 季洁 加入数 C++ 编译错误 0 0 MS 0 KB 293 2021-05-20 20:50:21

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int zz; int main(){ string::iterator it; string a,b,c; char p; cin>>a>>p; c=a; for(int i=0;i<=a.size()-1;i++){ b=a; b=b.insert(i,p); for(int j=0;j<=a.size()-1;j++){ b=b.erase(j,j); if(b>a) c=b; } } cout<<c; }


测评信息: