結果
問題 | No.1149 色塗りゲーム |
ユーザー |
|
提出日時 | 2020-11-20 20:38:57 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 454 bytes |
コンパイル時間 | 402 ms |
コンパイル使用メモリ | 87,264 KB |
実行使用メモリ | 87,908 KB |
平均クエリ数 | 8.38 |
最終ジャッジ日時 | 2023-09-24 07:08:59 |
合計ジャッジ時間 | 9,484 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 116 ms
86,772 KB |
testcase_01 | AC | 110 ms
86,796 KB |
testcase_02 | AC | 110 ms
86,892 KB |
testcase_03 | AC | 112 ms
87,132 KB |
testcase_04 | AC | 111 ms
87,596 KB |
testcase_05 | AC | 112 ms
87,164 KB |
testcase_06 | AC | 111 ms
87,456 KB |
testcase_07 | AC | 109 ms
87,392 KB |
testcase_08 | WA | - |
testcase_09 | AC | 110 ms
86,952 KB |
testcase_10 | AC | 112 ms
86,936 KB |
testcase_11 | WA | - |
testcase_12 | AC | 112 ms
87,116 KB |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
testcase_32 | WA | - |
testcase_33 | WA | - |
testcase_34 | WA | - |
testcase_35 | WA | - |
testcase_36 | WA | - |
testcase_37 | WA | - |
testcase_38 | WA | - |
testcase_39 | WA | - |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | WA | - |
testcase_47 | WA | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
ソースコード
import sys n = int(input()) if n%2: print(1,(n+1)//2) c = (n+1)//2 sys.stdout.flush() else: print(2,n//2) c = n//2 sys.stdout.flush() while True: t = int(input()) if t == 0 or t == 1: exit() k,x = map(int,input().split()) if k == 1: print(1,1+n-x) sys.stdout.flush() else: if x < c: print(2,n-x) else: print(2,n+1-x) sys.stdout.flush()