Wrong Answer
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-11-11 02:48:45
- Judged By
- Score
- 1
- Total Time
- 12ms
- Peak Memory
- 444.0 KiB