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:-
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.