/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 320.0 KiB
#2 Wrong Answer 12ms 580.0 KiB
#3 Wrong Answer 6ms 572.0 KiB

Code

// Online C++ compiler to run C++ program online
#include <iostream>
#include "vector"
#include "unordered_map"
#include "algorithm"
using namespace std;

int main() {
    ios :: sync_with_stdio(false);
    cin.tie(0);
    
    // cout<<gcd(6,2);
    int tc = 1;
    cin>>tc;
    while(tc--){
        int n;
        cin>>n;
        vector<int>v(n);
        int odd = 0, even = 0;
        for(auto it:v){
            cin>>it;
            if(it%2){
                odd++;
            }
            else{
                even++;
            }
        }
        int cnt = min(odd,even);
        if(cnt%2){
            cout<<"Roy\n";
        }
        else{
            cout<<"Hridoy\n";
        }
        
    }

    return 0;
}

Information

Submit By
Type
Submission
Problem
P1102 Odd-Even Game
Contest
Brain Booster #6
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-03 17:22:43
Judged At
2024-11-11 02:46:19
Judged By
Score
1
Total Time
12ms
Peak Memory
580.0 KiB