/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 328.0 KiB
#2 Wrong Answer 40ms 540.0 KiB
#3 Wrong Answer 17ms 568.0 KiB
#4 Wrong Answer 15ms 840.0 KiB
#5 Wrong Answer 56ms 1.289 MiB
#6 Wrong Answer 55ms 1.277 MiB

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(n==1)
            cout<<"Roy\n";
        else 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-05 05:51:22
Judged At
2024-10-05 05:51:22
Judged By
Score
1
Total Time
56ms
Peak Memory
1.289 MiB