/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 2ms 348.0 KiB
#2 Wrong Answer 20ms 576.0 KiB
#3 Wrong Answer 10ms 588.0 KiB

Code

#include <bits/stdc++.h>
#define int long long
#define sqrt(x) sqrtl(x)
using namespace std;

namespace solve {
  namespace test_case {
    void main() {
      int n, odd (0), even (0); cin >> n;
      vector<int> v(n);
      for (auto &i : v) {
        cin >> i;
        if (i % 2 == 0) {
          even++;
        } else {
          odd++;
        }
      }
      if (even == 0 || odd == 0) cout << "Hridoy" << '\n';
      else cout << "Roy" << '\n';
    }
  }

  void main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int t (1); cin >> t; 
    while (t--) {
      test_case::main();
    }
  }
}

signed main() { solve::main(); } 

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 15:49:26
Judged At
2024-12-17 11:35:55
Judged By
Score
1
Total Time
20ms
Peak Memory
588.0 KiB