Rudro_Debnath

Untitled

Dec 19th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define PSB push_back
  5. #define ll long long
  6. #define FastIO ios::sync_with_stdio(0);cin.tie(0); cout.tie(0);
  7. constexpr ll mod = 1e9 + 7;
  8. const ll N=3e6+5;
  9.  
  10.  
  11. int main(){
  12. FastIO
  13. int n,t;
  14. cin>>t;
  15. while(t--){
  16. ll n;
  17. string s1,s2;
  18. cin>>n>>s1>>s2;
  19. sort(s1.begin(),s1.end());
  20. sort(s2.begin(),s2.end());
  21. if(s1>s2) cout<<"RED"<<endl;
  22. else if(s2>s1) cout<<"BLUE"<<endl;
  23. else cout<<"EQUAL"<<endl;
  24. }
  25.  
  26.  
  27. return 0;
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment