結果

問題 No.1149 色塗りゲーム
ユーザー rlangevin
提出日時 2023-01-23 21:11:00
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 82,400 KB
平均クエリ数 1.06
最終ジャッジ日時 2024-06-25 15:17:33
合計ジャッジ時間 9,164 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 RE * 49
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


N = int(input())
print((N + 1)//2, 2 - N % 2)
sys.stdout.flush()
while True:
    t = int(input())
    if t == 0:
        exit()
    k, x = map(int, input().split())
    if k == 1:
        print(N + 1 - x, 1)
    else:
        x += 1
        print(N + 1 - x, 2)
    sys.stdout.flush()
0