Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
int t;
cin>>t;
while(t--){
int n,k;
cin>>n>>k;
int a[n];
for(int i=0;i<n;i++){
cin>>a[i];
}
long long sum=0;
for(int i=0;i<n;i++){
sum+=a[i];
}
long long x=sum/k;
if(x%2==0){
cout<<"Kamona\n";
}
else{
cout<<"Hridoy\n";
}
}
}
Information
- Submit By
- Type
- Submission
- Problem
- P1118 Stone Duel
- Language
- C++11 (G++ 13.2.0)
- Submit At
- 2025-08-05 17:19:10
- Judged At
- 2025-08-05 17:19:10
- Judged By
- Score
- 10
- Total Time
- 5ms
- Peak Memory
- 532.0 KiB