結果

問題 No.1149 色塗りゲーム
ユーザー yansi819
提出日時 2024-05-08 20:07:43
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 348 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 82,480 KB
実行使用メモリ 70,572 KB
平均クエリ数 19.82
最終ジャッジ日時 2024-12-15 03:16:28
合計ジャッジ時間 9,325 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

k, x = 0, 0
if N % 2 == 1:
    k = 1
    x = N // 2 + 1
else:
    k = 2
    x = N // 2

print(k, x)

while True:
    t = int(input())
    if t == 0 or t == 1:
        exit()
    elif t == 2:
        k, x = map(int, input().split())
        exit()
    else:
        k, x = map(int, input().split())
        print(k, N + 2 - x - k)
0