Wrong Answer
Code
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
int arr[n];
int odd=0,even=0;
for(int i=0;i<n;i++)
{
scanf("%d",&arr[i]);
if(arr[i]%2==0)
{
even++;
}
else
{
odd++;
}
}
if(odd>even)
{
printf("Hridoy\n");
}
else
{
printf("Roy\n");
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1102 Odd-Even Game
- Contest
- Brain Booster #6
- Language
- C11 (GCC 13.2.0)
- Submit At
- 2024-10-03 16:40:54
- Judged At
- 2024-11-11 02:47:50
- Judged By
- Score
- 0
- Total Time
- 23ms
- Peak Memory
- 440.0 KiB