/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 388.0 KiB
#2 Wrong Answer 12ms 432.0 KiB
#3 Wrong Answer 6ms 428.0 KiB

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