結果

問題 No.1149 色塗りゲーム
ユーザー もりをもりを
提出日時 2020-08-07 21:46:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 261 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 87,184 KB
実行使用メモリ 87,592 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-24 04:19:21
合計ジャッジ時間 8,947 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
86,968 KB
testcase_01 AC 100 ms
87,236 KB
testcase_02 AC 95 ms
87,128 KB
testcase_03 AC 97 ms
86,816 KB
testcase_04 AC 96 ms
86,768 KB
testcase_05 AC 96 ms
87,272 KB
testcase_06 AC 97 ms
87,128 KB
testcase_07 AC 98 ms
87,352 KB
testcase_08 AC 97 ms
87,052 KB
testcase_09 AC 100 ms
87,404 KB
testcase_10 AC 100 ms
87,160 KB
testcase_11 AC 101 ms
87,224 KB
testcase_12 AC 99 ms
86,996 KB
testcase_13 AC 97 ms
87,064 KB
testcase_14 AC 99 ms
87,424 KB
testcase_15 AC 99 ms
86,868 KB
testcase_16 AC 99 ms
86,964 KB
testcase_17 AC 99 ms
87,296 KB
testcase_18 AC 99 ms
87,196 KB
testcase_19 AC 99 ms
87,524 KB
testcase_20 AC 102 ms
87,112 KB
testcase_21 AC 101 ms
87,180 KB
testcase_22 AC 103 ms
87,232 KB
testcase_23 AC 101 ms
87,592 KB
testcase_24 AC 103 ms
86,812 KB
testcase_25 AC 100 ms
87,204 KB
testcase_26 AC 103 ms
87,272 KB
testcase_27 AC 103 ms
87,100 KB
testcase_28 AC 103 ms
86,980 KB
testcase_29 AC 105 ms
87,344 KB
testcase_30 AC 138 ms
87,196 KB
testcase_31 AC 135 ms
87,240 KB
testcase_32 AC 134 ms
87,480 KB
testcase_33 AC 137 ms
87,192 KB
testcase_34 AC 142 ms
87,012 KB
testcase_35 AC 134 ms
87,320 KB
testcase_36 AC 144 ms
87,232 KB
testcase_37 AC 143 ms
87,280 KB
testcase_38 AC 137 ms
86,920 KB
testcase_39 AC 143 ms
87,292 KB
testcase_40 AC 160 ms
87,232 KB
testcase_41 AC 151 ms
87,544 KB
testcase_42 AC 146 ms
87,324 KB
testcase_43 AC 146 ms
87,356 KB
testcase_44 AC 152 ms
87,072 KB
testcase_45 AC 155 ms
87,052 KB
testcase_46 AC 156 ms
87,388 KB
testcase_47 AC 161 ms
87,240 KB
testcase_48 AC 163 ms
87,392 KB
testcase_49 AC 165 ms
87,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())

if n % 2 == 0:
    print(2, n // 2)
else:
    print(1, n // 2 + 1)

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