/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 496.0 KiB
#2 Wrong Answer 75ms 580.0 KiB
#3 Wrong Answer 30ms 576.0 KiB

Code

#include<bits/stdc++.h>
using namespace std;
#define ll long long int 
int main()
{
    ll tc;
    cin>>tc;
    while(tc--)
    {
        ll n;
        cin>>n;
        vector<ll>v(n);
        map<ll,ll>mp;
        for(int i=0;i<n;i++)
        {
            cin>>v[i];
            mp[v[i]%2]++;
        }
        if(mp[1]==0 || mp[0]==0 || mp[1]==mp[0])
            cout<<"Hridoy\n";
        else 
            cout<<"Roy\n";

    }
}

Information

Submit By
Type
Submission
Problem
P1102 Odd-Even Game
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-04 17:29:51
Judged At
2024-11-11 02:42:30
Judged By
Score
1
Total Time
75ms
Peak Memory
580.0 KiB