結果

問題 No.1149 色塗りゲーム
ユーザー tktk_snsntktk_snsn
提出日時 2020-08-07 21:40:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 398 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 10,772 KB
実行使用メモリ 24,492 KB
平均クエリ数 15.68
最終ジャッジ日時 2023-09-24 04:12:29
合計ジャッジ時間 6,352 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
23,384 KB
testcase_01 AC 52 ms
23,616 KB
testcase_02 AC 53 ms
24,252 KB
testcase_03 WA -
testcase_04 AC 55 ms
24,360 KB
testcase_05 WA -
testcase_06 AC 53 ms
23,520 KB
testcase_07 WA -
testcase_08 AC 53 ms
23,988 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 55 ms
23,604 KB
testcase_12 WA -
testcase_13 AC 56 ms
23,552 KB
testcase_14 WA -
testcase_15 AC 55 ms
23,604 KB
testcase_16 WA -
testcase_17 AC 56 ms
23,708 KB
testcase_18 WA -
testcase_19 AC 57 ms
24,196 KB
testcase_20 WA -
testcase_21 AC 58 ms
23,396 KB
testcase_22 WA -
testcase_23 AC 59 ms
23,564 KB
testcase_24 WA -
testcase_25 AC 60 ms
23,428 KB
testcase_26 WA -
testcase_27 AC 59 ms
24,240 KB
testcase_28 WA -
testcase_29 AC 60 ms
23,976 KB
testcase_30 AC 98 ms
24,240 KB
testcase_31 WA -
testcase_32 AC 97 ms
23,556 KB
testcase_33 WA -
testcase_34 AC 104 ms
23,640 KB
testcase_35 WA -
testcase_36 AC 104 ms
24,244 KB
testcase_37 WA -
testcase_38 AC 105 ms
23,952 KB
testcase_39 WA -
testcase_40 AC 108 ms
24,364 KB
testcase_41 WA -
testcase_42 AC 116 ms
23,540 KB
testcase_43 WA -
testcase_44 AC 121 ms
24,352 KB
testcase_45 WA -
testcase_46 AC 116 ms
24,348 KB
testcase_47 WA -
testcase_48 AC 119 ms
24,040 KB
testcase_49 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
h = (N + 1) // 2


# 初手で真ん中を寸断する
if N % 2 == 1:
    k = 1
    x = h
    print(k, x)
else:
    k = 2
    x = h
    print(k, x)

while True:
    t = int(input())
    if t == 0 or t == 1:
        break
    k, x = map(int, input().split())
    if t == 2:
        break

    if x < h:
        x += h
        print(k, x)
    else:
        x -= h
        print(k, x)
0