Advertisement
semsem_elazazy

Untitled

Feb 15th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include<bits/stdc++.h>
  3. #define ll long long
  4. using namespace std;
  5.  
  6. int main() {
  7. string s;
  8. cin>>s;
  9. int len =s.size();
  10. for(int i = 0 ;i<len ;i++)
  11. {
  12.     if(s[i]== 'u' && s[i+1]=='s' && s[i+2]=='e' && s[i+3]=='r' && s[i+4]=='n' && s[i+5]=='a' && s[i+5]=='m' && s[i+6]=='e')
  13.     {
  14.         i+=8;
  15.         if (s[i]=='&')
  16.         break;
  17.         else
  18.         cout<<s[i]<<endl;
  19.        
  20.     }
  21.    
  22. }
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement