/ SeriousOJ /

Record Detail

Wrong Answer


  
# Status Time Cost Memory Cost
#1 Accepted 1ms 324.0 KiB
#2 Wrong Answer 10ms 532.0 KiB
#3 Wrong Answer 3ms 532.0 KiB

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-10-30 11:10:07
Judged By
Score
10
Total Time
10ms
Peak Memory
532.0 KiB