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[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-12-17 11:35:04
- Judged By
- Score
- 1
- Total Time
- 23ms
- Peak Memory
- 444.0 KiB