/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 0ms 320.0 KiB
#2 Wrong Answer 12ms 284.0 KiB
#3 Wrong Answer 5ms 428.0 KiB

Code

#include <stdio.h>

int main() {
    int tt;
    scanf("%d", &tt);
    while (tt--) {
	int n, c[2] = { 0 }, _;
	scanf("%d", &n);
	for (int x; n--;) scanf("%d", &x), ++c[x & 1];
	if (c[0] < c[1]) _ = c[0], c[0] = c[1], c[1] = _;
	if (c[0] > c[1] && (c[1] & 1)) puts("Roy");
	else puts("Hridoy");
    }
}

Information

Submit By
Type
Submission
Problem
P1102 Odd-Even Game
Contest
Brain Booster #6
Language
C99 (GCC 13.2.0)
Submit At
2024-10-03 16:18:42
Judged At
2024-12-17 11:35:01
Judged By
Score
1
Total Time
12ms
Peak Memory
428.0 KiB