結果

問題 No.1149 色塗りゲーム
ユーザー 👑 rin204rin204
提出日時 2020-08-13 06:39:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 226 bytes
コンパイル時間 83 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 24,364 KB
平均クエリ数 19.82
最終ジャッジ日時 2023-09-24 05:32:23
合計ジャッジ時間 6,948 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
24,360 KB
testcase_01 AC 58 ms
24,360 KB
testcase_02 AC 56 ms
24,312 KB
testcase_03 AC 57 ms
24,360 KB
testcase_04 AC 57 ms
23,824 KB
testcase_05 AC 56 ms
23,460 KB
testcase_06 AC 58 ms
24,004 KB
testcase_07 AC 59 ms
23,808 KB
testcase_08 AC 57 ms
23,484 KB
testcase_09 AC 57 ms
23,964 KB
testcase_10 AC 60 ms
23,652 KB
testcase_11 AC 60 ms
23,708 KB
testcase_12 AC 59 ms
23,864 KB
testcase_13 AC 59 ms
23,364 KB
testcase_14 AC 59 ms
24,024 KB
testcase_15 AC 59 ms
24,004 KB
testcase_16 AC 60 ms
24,000 KB
testcase_17 AC 60 ms
24,336 KB
testcase_18 AC 62 ms
23,656 KB
testcase_19 AC 61 ms
23,824 KB
testcase_20 AC 59 ms
24,040 KB
testcase_21 AC 59 ms
23,668 KB
testcase_22 AC 60 ms
23,364 KB
testcase_23 AC 62 ms
23,532 KB
testcase_24 AC 63 ms
24,028 KB
testcase_25 AC 62 ms
24,240 KB
testcase_26 AC 61 ms
23,548 KB
testcase_27 AC 63 ms
23,540 KB
testcase_28 AC 63 ms
23,460 KB
testcase_29 AC 63 ms
24,000 KB
testcase_30 AC 103 ms
24,352 KB
testcase_31 AC 96 ms
23,460 KB
testcase_32 AC 99 ms
24,312 KB
testcase_33 AC 102 ms
23,536 KB
testcase_34 AC 105 ms
23,640 KB
testcase_35 AC 98 ms
24,004 KB
testcase_36 AC 106 ms
23,364 KB
testcase_37 AC 110 ms
23,532 KB
testcase_38 AC 105 ms
24,012 KB
testcase_39 AC 109 ms
23,616 KB
testcase_40 AC 115 ms
24,024 KB
testcase_41 AC 114 ms
23,608 KB
testcase_42 AC 111 ms
24,244 KB
testcase_43 AC 111 ms
23,504 KB
testcase_44 AC 121 ms
23,364 KB
testcase_45 AC 118 ms
23,852 KB
testcase_46 AC 121 ms
23,600 KB
testcase_47 AC 129 ms
24,000 KB
testcase_48 AC 130 ms
23,636 KB
testcase_49 AC 131 ms
24,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n % 2 == 1:
    print(1, n // 2 + 1)
else:
    print(2, n // 2)
while 1:
    t = int(input())
    if t in [0, 1]:
        break
    k, x = map(int, input().split())
    
    print(k, n - x + 2 - k)
        
0