結果

問題 No.1149 色塗りゲーム
ユーザー kohei2019kohei2019
提出日時 2020-12-21 20:39:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 333 bytes
コンパイル時間 88 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 24,372 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-24 09:30:57
合計ジャッジ時間 6,940 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,616 KB
testcase_01 AC 58 ms
23,380 KB
testcase_02 AC 56 ms
24,004 KB
testcase_03 AC 55 ms
23,472 KB
testcase_04 AC 56 ms
23,604 KB
testcase_05 AC 56 ms
24,000 KB
testcase_06 AC 56 ms
23,592 KB
testcase_07 AC 56 ms
23,572 KB
testcase_08 AC 56 ms
23,420 KB
testcase_09 AC 58 ms
23,496 KB
testcase_10 AC 59 ms
23,964 KB
testcase_11 AC 58 ms
23,496 KB
testcase_12 AC 59 ms
23,420 KB
testcase_13 AC 59 ms
23,776 KB
testcase_14 AC 60 ms
23,848 KB
testcase_15 AC 58 ms
23,976 KB
testcase_16 AC 59 ms
23,664 KB
testcase_17 AC 60 ms
23,592 KB
testcase_18 AC 60 ms
23,604 KB
testcase_19 AC 61 ms
23,400 KB
testcase_20 AC 59 ms
23,580 KB
testcase_21 AC 59 ms
23,880 KB
testcase_22 AC 60 ms
23,992 KB
testcase_23 AC 60 ms
23,740 KB
testcase_24 AC 61 ms
24,252 KB
testcase_25 AC 62 ms
24,352 KB
testcase_26 AC 61 ms
24,372 KB
testcase_27 AC 62 ms
24,004 KB
testcase_28 AC 62 ms
24,004 KB
testcase_29 AC 63 ms
24,184 KB
testcase_30 AC 101 ms
23,340 KB
testcase_31 AC 96 ms
23,772 KB
testcase_32 AC 98 ms
23,376 KB
testcase_33 AC 100 ms
23,524 KB
testcase_34 AC 104 ms
24,016 KB
testcase_35 AC 99 ms
24,348 KB
testcase_36 AC 107 ms
23,676 KB
testcase_37 AC 110 ms
23,508 KB
testcase_38 AC 103 ms
23,528 KB
testcase_39 AC 111 ms
23,640 KB
testcase_40 AC 115 ms
23,620 KB
testcase_41 AC 112 ms
23,776 KB
testcase_42 AC 111 ms
23,528 KB
testcase_43 AC 110 ms
23,628 KB
testcase_44 AC 120 ms
23,400 KB
testcase_45 AC 118 ms
23,544 KB
testcase_46 AC 119 ms
23,520 KB
testcase_47 AC 126 ms
24,004 KB
testcase_48 AC 125 ms
23,700 KB
testcase_49 AC 132 ms
23,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
N = int(input())
if N%2 == 0:
    k = 2
    x = N//2
    print(k,x)
    sys.stdout.flush()
else:
    k = 1
    x = -(-N//2)
    print(k,x)
    sys.stdout.flush()
t = 3
while t != 0:
    t = int(input())
    if t == 0:
        break
    k,x = map(int,input().split())
    x1 = N-x+2-k
    print(k,x1)
    sys.stdout.flush()
0