結果

問題 No.1149 色塗りゲーム
ユーザー c-yanc-yan
提出日時 2020-08-11 00:21:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 201 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 24,432 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-24 05:28:57
合計ジャッジ時間 5,810 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
24,200 KB
testcase_01 AC 50 ms
24,388 KB
testcase_02 AC 43 ms
23,696 KB
testcase_03 AC 45 ms
24,056 KB
testcase_04 AC 48 ms
24,376 KB
testcase_05 AC 50 ms
24,140 KB
testcase_06 AC 44 ms
23,832 KB
testcase_07 AC 44 ms
24,344 KB
testcase_08 AC 44 ms
24,132 KB
testcase_09 AC 45 ms
23,620 KB
testcase_10 AC 46 ms
24,252 KB
testcase_11 AC 54 ms
23,944 KB
testcase_12 AC 56 ms
24,024 KB
testcase_13 AC 54 ms
23,780 KB
testcase_14 AC 47 ms
24,036 KB
testcase_15 AC 49 ms
23,744 KB
testcase_16 AC 53 ms
23,736 KB
testcase_17 AC 48 ms
24,136 KB
testcase_18 AC 47 ms
23,540 KB
testcase_19 AC 48 ms
24,132 KB
testcase_20 AC 47 ms
24,432 KB
testcase_21 AC 49 ms
24,156 KB
testcase_22 AC 47 ms
24,100 KB
testcase_23 AC 47 ms
23,656 KB
testcase_24 AC 50 ms
23,948 KB
testcase_25 AC 49 ms
24,276 KB
testcase_26 AC 49 ms
23,948 KB
testcase_27 AC 49 ms
23,780 KB
testcase_28 AC 50 ms
24,288 KB
testcase_29 AC 51 ms
23,916 KB
testcase_30 AC 87 ms
24,416 KB
testcase_31 AC 78 ms
23,592 KB
testcase_32 AC 80 ms
23,944 KB
testcase_33 AC 82 ms
23,860 KB
testcase_34 AC 86 ms
23,936 KB
testcase_35 AC 84 ms
23,936 KB
testcase_36 AC 94 ms
23,984 KB
testcase_37 AC 97 ms
24,300 KB
testcase_38 AC 89 ms
23,772 KB
testcase_39 AC 92 ms
24,248 KB
testcase_40 AC 98 ms
23,852 KB
testcase_41 AC 95 ms
23,780 KB
testcase_42 AC 96 ms
23,656 KB
testcase_43 AC 95 ms
23,852 KB
testcase_44 AC 109 ms
23,724 KB
testcase_45 AC 102 ms
24,156 KB
testcase_46 AC 100 ms
23,820 KB
testcase_47 AC 118 ms
24,336 KB
testcase_48 AC 109 ms
23,720 KB
testcase_49 AC 112 ms
23,924 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 in [0, 1]:
        exit()
    k, x = map(int, input().split())
    if t == 2:
        exit()
    print(k, N - (x - 1) - (k - 1))
0