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>0)
{
printf("Roy\n");
}
else
{
printf("Hridoy\n");
}
}
return 0;
}
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:43:28
- Judged At
- 2024-11-11 02:47:45
- Judged By
- Score
- 1
- Total Time
- 12ms
- Peak Memory
- 432.0 KiB