# Chef and Easy Queries codechef October Long

For some reason the sub-task1 Task# 0 is giving RE (SIGFPE) error. All the other test cases passed but that case is not working out. Please someone help me out !!

I know that this error is generally caused because of division by 0 and there is just a single division operation that I have performed in my code ( division by k) and I applied a check if(k==0) just after taking the input and then I get WA instead of RE (SIGFPE) error, here is the link for that:-
https://www.codechef.com/viewsolution/38772729

But I dont understand this because according to the constraints k should not be zero and what should be the answer when k is 0.

But according to the problem constraints, it’s clearly mentioned 1≤k≤10^8. I don’t understand why you’re looking into that case.

I’m aware of the constraints and I also wrote that I didnt understand why this is happening this was the only reason I wrote this post in the first place.
Try looking at both my solutions I have provided the link you’ll get what I’m talking about.

it passed one test case.can any one detect whats wrong
t=int(input())
for i in range(t):
n,k=map(int,input().split())
que=list(map(int,input().split()))
ind=0
day=1