제출 #44919

#제출 시각아이디문제언어결과실행 시간메모리
44919admin무제 (GCJ18Q_gogopher)Cpython 3
0 / 30
34 ms3300 KiB
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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...