Wrong Answer
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-11-11 02:40:34
- Judged By
- Score
- 1
- Total Time
- 55ms
- Peak Memory
- 580.0 KiB