結果

問題 No.1149 色塗りゲーム
ユーザー brthyyjpbrthyyjp
提出日時 2021-04-04 02:15:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 416 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 87,688 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-24 10:23:25
合計ジャッジ時間 10,000 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
87,668 KB
testcase_01 AC 111 ms
87,244 KB
testcase_02 AC 111 ms
87,456 KB
testcase_03 AC 112 ms
87,480 KB
testcase_04 AC 112 ms
87,056 KB
testcase_05 AC 113 ms
87,404 KB
testcase_06 AC 112 ms
86,756 KB
testcase_07 AC 114 ms
87,088 KB
testcase_08 AC 112 ms
86,888 KB
testcase_09 AC 111 ms
86,752 KB
testcase_10 AC 114 ms
86,980 KB
testcase_11 AC 114 ms
87,192 KB
testcase_12 AC 114 ms
86,992 KB
testcase_13 AC 114 ms
87,324 KB
testcase_14 AC 113 ms
86,828 KB
testcase_15 AC 113 ms
87,552 KB
testcase_16 AC 115 ms
87,180 KB
testcase_17 AC 116 ms
87,096 KB
testcase_18 AC 115 ms
87,404 KB
testcase_19 AC 116 ms
86,796 KB
testcase_20 AC 116 ms
87,352 KB
testcase_21 AC 117 ms
87,028 KB
testcase_22 AC 116 ms
87,488 KB
testcase_23 AC 115 ms
87,600 KB
testcase_24 AC 115 ms
87,592 KB
testcase_25 AC 118 ms
87,196 KB
testcase_26 AC 118 ms
87,592 KB
testcase_27 AC 120 ms
87,596 KB
testcase_28 AC 119 ms
87,012 KB
testcase_29 AC 120 ms
87,352 KB
testcase_30 AC 159 ms
87,548 KB
testcase_31 AC 151 ms
87,088 KB
testcase_32 AC 152 ms
87,352 KB
testcase_33 AC 158 ms
87,228 KB
testcase_34 AC 162 ms
87,304 KB
testcase_35 AC 157 ms
87,160 KB
testcase_36 AC 164 ms
87,232 KB
testcase_37 AC 168 ms
87,328 KB
testcase_38 AC 158 ms
87,076 KB
testcase_39 AC 166 ms
86,696 KB
testcase_40 AC 173 ms
86,892 KB
testcase_41 AC 171 ms
87,312 KB
testcase_42 AC 170 ms
87,428 KB
testcase_43 AC 169 ms
87,240 KB
testcase_44 AC 179 ms
87,024 KB
testcase_45 AC 178 ms
87,204 KB
testcase_46 AC 179 ms
86,908 KB
testcase_47 AC 186 ms
87,108 KB
testcase_48 AC 186 ms
87,612 KB
testcase_49 AC 189 ms
87,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n%2 == 0:
    print(2, n//2, flush=True)
else:
    print(1, (n+1)//2, flush=True)
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())
        if k == 1:
            print(1, n+1-x, flush=True)
        else:
            print(2, n+1-(x+1), flush=True)
0