Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define PSB push_back
- #define ll long long
- #define FastIO ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
- constexpr ll mod = 1e9 + 7;
- const ll N=3e6+5;
- int main(){
- FastIO
- int n,t;
- cin>>t;
- while(t--){
- ll n;
- string s1,s2;
- cin>>n>>s1>>s2;
- sort(s1.begin(),s1.end());
- sort(s2.begin(),s2.end());
- if(s1>s2) cout<<"RED"<<endl;
- else if(s2>s1) cout<<"BLUE"<<endl;
- else cout<<"EQUAL"<<endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment