/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 388.0 KiB
#2 Wrong Answer 12ms 480.0 KiB
#3 Wrong Answer 6ms 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[1]& 1) puts("Roy");
	else puts("Hridoy");
    }
}

Information

Submit By
Type
Submission
Problem
P1102 Odd-Even Game
Contest
Brain Booster #6
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-03 16:17:22
Judged At
2024-11-11 02:48:49
Judged By
Score
1
Total Time
12ms
Peak Memory
480.0 KiB