結果

問題 No.1149 色塗りゲーム
ユーザー Kiri8128
提出日時 2020-07-04 15:17:36
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 27,640 KB
平均クエリ数 19.82
最終ジャッジ日時 2024-07-17 03:54:41
合計ジャッジ時間 9,245 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 50
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N % 2 == 0:
    print(2, N // 2)
else:
    print(1, N // 2 + 1)

while 1:
    t = int(input())
    if t <= 1:
        break
    k, x = map(int, input().split())
    print(k, N + 2 - x - k)
0