TEMA
Presentation Error
cbernard preguntado 4 years ago
#include<bits/stdc++.h>
using namespace std;
int main(){
string b="";
char x[15];
while(scanf("%s",&x)!= EOF){
string a(x);
if(a.size()>=4 && a.substr(0,2)==a.substr(2,2)){
b+= a.substr(2,a.size()-2);
b+=" ";
}
else{
b+=a;
b+=" ";
}
}
cout<<b<<"\n";
return 0;
}
I'm getting PE. Pls tell me what's wrong.
Este tema aún no ha sido contestado. ¡Sé el primero!