Wrong Answer
Code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin >> t;
while(t--){
int n,k;
cin >>n>>k;
int arr[n];
int sum =0;
for(int i =0;i<n;i++){
cin >>arr[i];
sum+=arr[i];
}
int res= sum/k;
if(res%2==0){
cout<<"Kamona"<<endl;
}
else{
cout <<"Hridoy"<<endl;
}
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1118 Stone Duel
- Contest
- Sylhet ICPC 2024 Collaborative Challenge: Episode 2
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-10-30 11:10:07
- Judged At
- 2024-11-11 02:34:58
- Judged By
- Score
- 10
- Total Time
- 10ms
- Peak Memory
- 324.0 KiB