0
已解决
朱家烨
资深守护
资深守护
#include<iostream>
#include<string>
#include<cstring>
#include<cmath>
#include<cstdio>
using namespace std;
int main()
{
string s
int n,k=0x3f3f3f3f;
cin>>n;
getchar();
getline(cin,s);
for(int i=1;i<=n;i++){
cout<<s[i]<<endl;
if(s[i].size()<k){
k=(s[i].size());
}
}
cout<<k;
return 0;
}
我为什么样例都没过
朱家烨在2020-06-28 19:07:46追加了内容
#include<iostream>
#include<string>
#include<cstring>
#include<cmath>
#include<cstdio>
using namespace std;
int main(){
int n,minn=0x3f3f3f3f;
string s,a,b;
cin>>n;
getchar();
for(int i=1;i<=n;i++){
getline(cin,s);
cout<<s<<endl;
}
int len;
len=s.size();
if(len<minn){
minn=len;
}
cout<<minn;
return 0;
}
修改了还不行
0
0
0
0
0
0
0