結果

問題 No.1149 色塗りゲーム
ユーザー rlangevinrlangevin
提出日時 2023-01-23 21:14:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 179 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 332 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 87,844 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-07 21:43:54
合計ジャッジ時間 10,685 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
87,652 KB
testcase_01 AC 109 ms
86,956 KB
testcase_02 AC 109 ms
87,216 KB
testcase_03 AC 109 ms
87,356 KB
testcase_04 AC 106 ms
87,472 KB
testcase_05 AC 103 ms
87,344 KB
testcase_06 AC 103 ms
87,252 KB
testcase_07 AC 105 ms
87,328 KB
testcase_08 AC 105 ms
86,696 KB
testcase_09 AC 102 ms
87,100 KB
testcase_10 AC 107 ms
87,440 KB
testcase_11 AC 106 ms
87,260 KB
testcase_12 AC 105 ms
87,420 KB
testcase_13 AC 106 ms
87,844 KB
testcase_14 AC 109 ms
87,556 KB
testcase_15 AC 108 ms
87,540 KB
testcase_16 AC 107 ms
87,532 KB
testcase_17 AC 109 ms
87,372 KB
testcase_18 AC 107 ms
87,152 KB
testcase_19 AC 109 ms
87,316 KB
testcase_20 AC 112 ms
87,116 KB
testcase_21 AC 114 ms
87,328 KB
testcase_22 AC 112 ms
87,580 KB
testcase_23 AC 111 ms
87,160 KB
testcase_24 AC 111 ms
87,420 KB
testcase_25 AC 112 ms
87,636 KB
testcase_26 AC 111 ms
87,296 KB
testcase_27 AC 119 ms
87,184 KB
testcase_28 AC 110 ms
86,872 KB
testcase_29 AC 113 ms
87,740 KB
testcase_30 AC 153 ms
87,488 KB
testcase_31 AC 151 ms
87,460 KB
testcase_32 AC 152 ms
87,584 KB
testcase_33 AC 157 ms
87,404 KB
testcase_34 AC 161 ms
86,668 KB
testcase_35 AC 155 ms
87,476 KB
testcase_36 AC 170 ms
86,928 KB
testcase_37 AC 169 ms
87,424 KB
testcase_38 AC 160 ms
87,068 KB
testcase_39 AC 160 ms
87,180 KB
testcase_40 AC 169 ms
87,240 KB
testcase_41 AC 168 ms
87,028 KB
testcase_42 AC 163 ms
86,988 KB
testcase_43 AC 157 ms
86,808 KB
testcase_44 AC 166 ms
87,408 KB
testcase_45 AC 164 ms
87,316 KB
testcase_46 AC 169 ms
87,100 KB
testcase_47 AC 175 ms
87,164 KB
testcase_48 AC 170 ms
87,036 KB
testcase_49 AC 179 ms
87,584 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


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