結果

問題 No.1149 色塗りゲーム
ユーザー Kiri8128Kiri8128
提出日時 2020-07-04 15:17:36
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 208 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 10,484 KB
実行使用メモリ 24,420 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-24 03:44:01
合計ジャッジ時間 6,892 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
24,388 KB
testcase_01 AC 45 ms
23,616 KB
testcase_02 AC 51 ms
23,388 KB
testcase_03 AC 47 ms
23,428 KB
testcase_04 AC 45 ms
24,172 KB
testcase_05 AC 46 ms
23,824 KB
testcase_06 AC 49 ms
23,544 KB
testcase_07 AC 45 ms
23,620 KB
testcase_08 AC 44 ms
24,036 KB
testcase_09 AC 45 ms
23,624 KB
testcase_10 AC 45 ms
23,640 KB
testcase_11 AC 45 ms
24,420 KB
testcase_12 AC 45 ms
23,508 KB
testcase_13 AC 44 ms
23,404 KB
testcase_14 AC 45 ms
23,436 KB
testcase_15 AC 46 ms
23,420 KB
testcase_16 AC 47 ms
24,384 KB
testcase_17 AC 47 ms
23,628 KB
testcase_18 AC 46 ms
23,652 KB
testcase_19 AC 47 ms
23,956 KB
testcase_20 AC 46 ms
24,396 KB
testcase_21 AC 48 ms
23,556 KB
testcase_22 AC 47 ms
23,704 KB
testcase_23 AC 48 ms
24,184 KB
testcase_24 AC 48 ms
24,156 KB
testcase_25 AC 49 ms
24,040 KB
testcase_26 AC 49 ms
24,256 KB
testcase_27 AC 49 ms
24,156 KB
testcase_28 AC 51 ms
24,396 KB
testcase_29 AC 52 ms
23,556 KB
testcase_30 AC 86 ms
23,556 KB
testcase_31 AC 77 ms
24,028 KB
testcase_32 AC 81 ms
23,664 KB
testcase_33 AC 84 ms
23,664 KB
testcase_34 AC 86 ms
23,632 KB
testcase_35 AC 82 ms
23,520 KB
testcase_36 AC 89 ms
23,824 KB
testcase_37 AC 91 ms
24,036 KB
testcase_38 AC 86 ms
23,508 KB
testcase_39 AC 90 ms
24,024 KB
testcase_40 AC 97 ms
24,036 KB
testcase_41 AC 94 ms
23,652 KB
testcase_42 AC 92 ms
24,184 KB
testcase_43 AC 94 ms
23,544 KB
testcase_44 AC 102 ms
23,512 KB
testcase_45 AC 104 ms
23,352 KB
testcase_46 AC 105 ms
23,540 KB
testcase_47 AC 106 ms
23,688 KB
testcase_48 AC 104 ms
23,376 KB
testcase_49 AC 108 ms
23,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N % 2 == 0:
    print(2, N // 2)
else:
    print(1, N // 2 + 1)

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