/ SeriousOJ /

Record Detail

Compile Error

foo.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.

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]++;
        }
        ll mn=min(mp[0],mp[1]);
        if(n==1)
            cout<<"Roy\n";
        else if(mp[1]==0 || mp[0]==0 || mp[1]==mp[0])
            cout<<"Hridoy\n";
        else if(mn%2)
            cout<<"Roy\n";
        else if(mp[0]+1==mp[1] || mp[1]+1==mp[0])
            cout<<"Roy\n";
        else
            cout<<"Hridoy\n";
        
    }
}

Information

Submit By
Type
Submission
Problem
P1102 Odd-Even Game
Language
C99 (GCC 13.2.0)
Submit At
2024-10-05 06:27:02
Judged At
2024-10-05 06:27:02
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes