S07E09 - Editorial

bhai squid game question, btao isme kya galti hai

#include <stdio.h>

int main(void) {

int N,K,T,arr[100];
scanf("%d",&T);
for(int r=0;r<T;r++)
{
scanf("%d",&N);
scanf("%d",&K);

for(int i=1;i<=N;i++)
{
    scanf("%d",&arr[i]);
}
int flag=0;
for(int j=1;j<=N;j++)
{
    if(arr[j]>K)
    {
        flag=flag+1;
    }
    else
    {
        flag=flag+0;
    }
}
printf("%d\n",flag);
}
return 0;

}

Hey @kyle11 - Is this for this problem - SQUIDRULE Problem - CodeChef? If yes, you can ask this doubt directly to the doubt solver (for problems upto 1000 difficulty rating)