Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<bits/stdc++.h>
- #define ll long long
- using namespace std;
- int main() {
- string s;
- cin>>s;
- int len =s.size();
- for(int i = 0 ;i<len ;i++)
- {
- if (s[i]== '?')
- i++;
- for (int z=i ; z<len ; z++)
- {
- if (s[z]== '='){
- cout<<": "
- continue;
- }
- else if (s[z]== '&'){
- cout<<endl;
- continue;
- }
- cout<<s[z];
- }
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement