結果

問題 No.1149 色塗りゲーム
ユーザー mkawa2mkawa2
提出日時 2021-07-05 19:04:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 248 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 24,372 KB
平均クエリ数 19.88
最終ジャッジ日時 2023-09-24 10:43:46
合計ジャッジ時間 6,465 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
23,800 KB
testcase_01 AC 52 ms
23,680 KB
testcase_02 AC 53 ms
23,400 KB
testcase_03 AC 53 ms
23,524 KB
testcase_04 AC 52 ms
23,724 KB
testcase_05 AC 52 ms
23,788 KB
testcase_06 AC 55 ms
23,572 KB
testcase_07 AC 52 ms
23,604 KB
testcase_08 AC 51 ms
24,208 KB
testcase_09 AC 50 ms
24,028 KB
testcase_10 AC 53 ms
24,348 KB
testcase_11 AC 51 ms
23,988 KB
testcase_12 AC 52 ms
24,372 KB
testcase_13 AC 52 ms
23,576 KB
testcase_14 AC 52 ms
23,616 KB
testcase_15 AC 51 ms
23,660 KB
testcase_16 AC 50 ms
23,520 KB
testcase_17 AC 52 ms
23,680 KB
testcase_18 AC 50 ms
24,016 KB
testcase_19 AC 51 ms
23,712 KB
testcase_20 AC 51 ms
23,628 KB
testcase_21 AC 50 ms
23,824 KB
testcase_22 AC 53 ms
24,264 KB
testcase_23 AC 53 ms
23,456 KB
testcase_24 AC 54 ms
23,708 KB
testcase_25 AC 53 ms
24,048 KB
testcase_26 AC 54 ms
23,808 KB
testcase_27 AC 57 ms
24,252 KB
testcase_28 AC 54 ms
23,576 KB
testcase_29 AC 54 ms
23,536 KB
testcase_30 AC 92 ms
23,824 KB
testcase_31 AC 90 ms
23,508 KB
testcase_32 AC 91 ms
23,640 KB
testcase_33 AC 93 ms
23,796 KB
testcase_34 AC 98 ms
23,676 KB
testcase_35 AC 93 ms
23,832 KB
testcase_36 AC 100 ms
24,016 KB
testcase_37 AC 97 ms
23,504 KB
testcase_38 AC 100 ms
23,656 KB
testcase_39 AC 101 ms
24,012 KB
testcase_40 AC 104 ms
24,372 KB
testcase_41 AC 99 ms
24,348 KB
testcase_42 AC 106 ms
23,752 KB
testcase_43 AC 103 ms
24,336 KB
testcase_44 AC 112 ms
23,796 KB
testcase_45 AC 112 ms
23,676 KB
testcase_46 AC 115 ms
23,528 KB
testcase_47 AC 112 ms
23,820 KB
testcase_48 AC 110 ms
23,532 KB
testcase_49 AC 122 ms
24,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def rep(i, d):
    print(d, i+1, flush=True)
    return int(input())

n = int(input())
w = (n-1)//2
t = n-w
r = rep(w, 2-(n & 1))
while r == 3:
    d, i = map(int, input().split())
    i -= 1
    if i < t: r = rep(i+t, d)
    else: r = rep(i-t, d)
0