Advertisement
semsem_elazazy

R. URL

Feb 15th, 2022
49
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.    
  13.   if (s[i]== '?')
  14.   i++;
  15.   for (int z=i ; z<len ; z++)
  16.   {
  17.       if (s[z]== '='){
  18.       cout<<": "
  19.       continue;
  20.       }
  21.       else if (s[z]== '&'){
  22.       cout<<endl;
  23.       continue;
  24.       }
  25.       cout<<s[z];
  26.   }
  27.     break;
  28. }
  29. return 0;
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement