/ SeriousOJ /

Record Detail

Accepted


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 772.0 KiB
#2 Accepted 4ms 540.0 KiB
#3 Accepted 2ms 540.0 KiB
#4 Accepted 131ms 564.0 KiB
#5 Accepted 101ms 788.0 KiB
#6 Accepted 54ms 560.0 KiB

Code

#include <bits/stdc++.h>
using namespace std;
#define SC               scanf
#define PF               printf
#define ull              unsigned long long
#define ld               long double
#define F                first
#define S                second
#define pb               push_back
#define sort_a(a)        sort(a.begin(),a.end());
#define sort_d(a)        sort(a.rbegin(),a.rend());
#define READ(f)          freopen(f, "r", stdin)
#define WRITE(f)         freopen(f, "w", stdout)
#define rev(s)           reverse(s.begin(),s.end())
#define P(ok)            cout << (ok ? "YES\n": "NO\n")
#define __Heart__              ios_base :: sync_with_stdio(false); cin.tie(NULL);
#define ll long long
typedef pair< ll , ll>                   PII;
void solve()
{
   ll n , k , x = 0 , c ; cin >> n >> k ;
   for(int i = 0 ; i < n ; i++) cin >> c ,  x ^= c ;
   if(x == 0) cout << "Kamona\n" ;
   else cout << "Hridoy\n" ;
}
int main()
{
     __Heart__
   //  READ("input5.txt") ;
   //  WRITE("output5.txt") ;
     int t ; cin >> t ; while(t--) solve() ;
}

Information

Submit By
Type
Submission
Problem
P1118 Stone Duel
Language
C++17 (G++ 13.2.0)
Submit At
2024-10-26 01:20:49
Judged At
2024-10-26 01:20:49
Judged By
Score
100
Total Time
131ms
Peak Memory
788.0 KiB