My issue
cook your dish here
t=int(input())
for i in range(t):
s=input().split()
n=int(s[0])
k=int(s[1])
if (k % 3 == 1 and (k + 1) % 3 == 2) or (k % 3 == 2 and (k + 1) % 3 == 0) or (k % 3 == 0 and (k + 1) % 3 == 1):
print(“yes”)
else:
print(“no”)
why am i getting EOF error
My code
# cook your dish here
t=int(input())
for i in range(t):
s=input().split()
n=int(s[0])
k=int(s[1])
if (k % 3 == 1 and (k + 1) % 3 == 2) or (k % 3 == 2 and (k + 1) % 3 == 0) or (k % 3 == 0 and (k + 1) % 3 == 1):
print("yes")
else:
print("no")
Problem Link: ATM queue Practice Coding Problem - CodeChef