Wrong Answer
Code
#include<stdio.h>
int main()
{
int t;
scanf("%d",&t);
int odd_count=0,even_count=0;
for(int i=0; i < t;i++)
{
int n;
scanf("%d",&n);
for (int i = 0; i < n; i++)
{
int x;
scanf("%d",&x);
if (x%2==0)
{
even_count++;
}
else
{
odd_count++;
}
}
if (odd_count > even_count)
{
printf("Roy\n");
printf("Hridoy\n");
}
else
{
printf("Hridoy\n");
printf("Roy\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 17:01:58
- Judged At
- 2024-11-11 02:46:53
- Judged By
- Score
- 0
- Total Time
- 24ms
- Peak Memory
- 332.0 KiB