Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <set>
- #include <map>
- #include <queue>
- #include <cassert>
- #include <vector>
- #include <string>
- using namespace std;
- typedef long long ll;
- string apply_transfrom(const string &x)
- {
- string res = "";
- for(char c: x)
- if(c=='z')
- res+='0';
- else if(c=='n')
- res+='1';
- return res;
- }
- int main()
- {
- string a,b;
- cin>>a>>b;
- a=apply_transfrom(a);
- b=apply_transfrom(b);
- if(a.size() > b.size() || (a.size() == b.size() && a>b))
- cout << ">" << endl;
- else if(a == b)
- cout << "=" << endl;
- else
- cout << "<" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment