Accepted
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