結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
23,864 KB
testcase_01 AC 48 ms
23,756 KB
testcase_02 AC 49 ms
24,180 KB
testcase_03 AC 48 ms
23,764 KB
testcase_04 AC 44 ms
24,000 KB
testcase_05 AC 49 ms
24,008 KB
testcase_06 AC 45 ms
24,316 KB
testcase_07 AC 49 ms
24,328 KB
testcase_08 AC 47 ms
24,296 KB
testcase_09 AC 51 ms
23,976 KB
testcase_10 AC 54 ms
24,204 KB
testcase_11 AC 48 ms
23,864 KB
testcase_12 AC 45 ms
24,176 KB
testcase_13 AC 45 ms
23,700 KB
testcase_14 AC 48 ms
23,852 KB
testcase_15 AC 47 ms
23,760 KB
testcase_16 AC 45 ms
23,716 KB
testcase_17 AC 49 ms
23,760 KB
testcase_18 AC 47 ms
23,984 KB
testcase_19 AC 48 ms
24,324 KB
testcase_20 AC 47 ms
23,704 KB
testcase_21 AC 54 ms
23,728 KB
testcase_22 AC 47 ms
23,832 KB
testcase_23 AC 47 ms
23,764 KB
testcase_24 AC 48 ms
23,904 KB
testcase_25 AC 48 ms
24,420 KB
testcase_26 AC 48 ms
23,756 KB
testcase_27 AC 48 ms
24,120 KB
testcase_28 AC 50 ms
24,316 KB
testcase_29 AC 51 ms
24,208 KB
testcase_30 AC 83 ms
23,780 KB
testcase_31 AC 78 ms
24,052 KB
testcase_32 AC 86 ms
23,608 KB
testcase_33 AC 84 ms
24,324 KB
testcase_34 AC 85 ms
23,668 KB
testcase_35 AC 82 ms
23,992 KB
testcase_36 AC 89 ms
23,680 KB
testcase_37 AC 92 ms
23,712 KB
testcase_38 AC 85 ms
24,328 KB
testcase_39 AC 92 ms
23,776 KB
testcase_40 AC 98 ms
23,704 KB
testcase_41 AC 94 ms
23,636 KB
testcase_42 AC 92 ms
23,708 KB
testcase_43 AC 95 ms
24,320 KB
testcase_44 AC 102 ms
23,940 KB
testcase_45 AC 100 ms
23,692 KB
testcase_46 AC 99 ms
23,696 KB
testcase_47 AC 108 ms
24,096 KB
testcase_48 AC 107 ms
23,752 KB
testcase_49 AC 109 ms
24,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
if N % 2 == 1:
    print(1, (N + 1) // 2)
else:
    print(2, N // 2)
while True:
    t=int(input())
    if t==0:
        exit(0)
    k,x=map(int,input().split())
    print(k,N-k+1-(x-1))
0