fork download
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. char buffer[20];
  8. string str ;
  9. for(int j=1;j<=1010;j++){
  10. getline(cin,str,'\n');
  11. for(int i=0;i<str.size();i++){
  12. if(str[i]=='0'&&str[i+1]=='1'){
  13. size_t length = str.copy(buffer,11,i);
  14. buffer[length]='\0';
  15. cout <<"88"<<buffer <<'\n';
  16. }
  17. }
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty