/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 332.0 KiB
#2 Accepted 4ms 540.0 KiB
#3 Accepted 2ms 552.0 KiB
#4 Accepted 79ms 560.0 KiB
#5 Accepted 106ms 788.0 KiB
#6 Accepted 55ms 568.0 KiB

Code

#include <bits/stdc++.h>
#define ll long long
#define deb(x) cout << #x << " : " << x << endl;
#define take_input(a)                                                          \
  for (auto &x : a)                                                            \
    cin >> x;
#define _output(a)                                                             \
  for (auto &x : a)                                                            \
    cout << x << " ";                                                          \
  cout << endl;
#define srt(a) sort(a.begin(), a.end())
#define nl "\n"
using namespace std;

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int T = 1;
  cin >> T;

  while (T--) {
    int n, k;
    cin >> n >> k;

    int xr = 0;

    for (int i = 0; i < n; i++) {
      int temp;
      cin >> temp;
      xr = xr ^ temp;
    }

    if (xr == 0)
      cout << "Kamona" << nl;
    else
      cout << "Hridoy" << nl;
  }

  return 0;
}

Information

Submit By
Type
Submission
Problem
P1118 Stone Duel
Language
C++11 (G++ 13.2.0)
Submit At
2024-11-11 15:22:31
Judged At
2024-11-11 15:22:31
Judged By
Score
100
Total Time
106ms
Peak Memory
788.0 KiB