This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
import sys
T = int(input())
A = int(input())
if A == 20:
def go():
for i in [2,3,4]:
for j in [2,3]:
for _ in range(100):
print(i, j)
sys.stdout.flush()
x, y = map(int, input().split(" "))
if x == 0 and y == 0:
return
else:
def go():
return
for _ in range(T):
go()
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |