So this is my first time using codechef. and I’m trying the NUMCOMP exercise.

I keep on getting the NZEC error for this code…

When i use the custom inputs, it works perfectly fine.

can someone help me understand what I’m not getting right?

# cook your dish here

T=int(input())

x=0

while(x<T):

a, b, n=input().split(" ")

a=int(a)

b=int(b)

n=int(n)

if (pow(a,n)>pow(b,n)):

print(“1”)

elif(pow(a,n)<pow(b,n)):

print(“2”)

elif(pow(a,n)==pow(b,n)):

print(“0”)

x=x+1