結果

問題 No.1149 色塗りゲーム
ユーザー 👑 KazunKazun
提出日時 2020-08-07 21:27:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 372 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 87,904 KB
平均クエリ数 15.68
最終ジャッジ日時 2023-09-24 04:02:38
合計ジャッジ時間 8,469 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 103 ms
87,236 KB
testcase_01 AC 97 ms
87,092 KB
testcase_02 AC 100 ms
87,556 KB
testcase_03 WA -
testcase_04 AC 98 ms
87,228 KB
testcase_05 WA -
testcase_06 AC 96 ms
87,412 KB
testcase_07 WA -
testcase_08 AC 96 ms
87,104 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 96 ms
86,948 KB
testcase_12 WA -
testcase_13 AC 100 ms
87,152 KB
testcase_14 WA -
testcase_15 AC 98 ms
86,668 KB
testcase_16 WA -
testcase_17 AC 98 ms
87,468 KB
testcase_18 WA -
testcase_19 AC 100 ms
87,880 KB
testcase_20 WA -
testcase_21 AC 106 ms
87,156 KB
testcase_22 WA -
testcase_23 AC 102 ms
87,608 KB
testcase_24 WA -
testcase_25 AC 102 ms
86,744 KB
testcase_26 WA -
testcase_27 AC 104 ms
87,336 KB
testcase_28 WA -
testcase_29 AC 101 ms
87,100 KB
testcase_30 AC 136 ms
87,224 KB
testcase_31 WA -
testcase_32 AC 136 ms
87,224 KB
testcase_33 WA -
testcase_34 AC 142 ms
87,392 KB
testcase_35 WA -
testcase_36 AC 140 ms
87,540 KB
testcase_37 WA -
testcase_38 AC 139 ms
87,028 KB
testcase_39 WA -
testcase_40 AC 147 ms
87,280 KB
testcase_41 WA -
testcase_42 AC 151 ms
87,192 KB
testcase_43 WA -
testcase_44 AC 153 ms
87,368 KB
testcase_45 WA -
testcase_46 AC 150 ms
87,328 KB
testcase_47 WA -
testcase_48 AC 152 ms
86,912 KB
testcase_49 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
N=int(input())
X=[0]*(N+1)

if N%2:
    C=(N+1)//2
    print(1,C,flush=True)
    Y=N-1
else:
    C=N//2
    print(2,C,flush=True)
    Y=N-2

while Y:
    T=int(input())
    if T==0 or T==1:
        sys.exit()
    elif T==2:
        _=input()
        sys.exit()

    k,x=map(int,input().split())
    if x<C:
        print(k,x+C)
    else:
        print(k,x-C)


0