結果
問題 | No.1149 色塗りゲーム |
ユーザー | kimiyuki |
提出日時 | 2020-08-07 21:37:23 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 483 bytes |
コンパイル時間 | 91 ms |
コンパイル使用メモリ | 10,716 KB |
実行使用メモリ | 24,528 KB |
平均クエリ数 | 15.68 |
最終ジャッジ日時 | 2023-09-24 04:09:59 |
合計ジャッジ時間 | 5,373 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 52 ms
24,324 KB |
testcase_01 | AC | 44 ms
23,652 KB |
testcase_02 | AC | 46 ms
23,364 KB |
testcase_03 | WA | - |
testcase_04 | AC | 45 ms
23,596 KB |
testcase_05 | WA | - |
testcase_06 | AC | 50 ms
23,704 KB |
testcase_07 | WA | - |
testcase_08 | AC | 44 ms
23,968 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 45 ms
24,000 KB |
testcase_12 | WA | - |
testcase_13 | AC | 45 ms
23,664 KB |
testcase_14 | WA | - |
testcase_15 | AC | 47 ms
23,612 KB |
testcase_16 | WA | - |
testcase_17 | AC | 47 ms
23,408 KB |
testcase_18 | WA | - |
testcase_19 | AC | 46 ms
23,980 KB |
testcase_20 | WA | - |
testcase_21 | AC | 48 ms
24,348 KB |
testcase_22 | WA | - |
testcase_23 | AC | 47 ms
23,376 KB |
testcase_24 | WA | - |
testcase_25 | AC | 49 ms
23,704 KB |
testcase_26 | WA | - |
testcase_27 | AC | 50 ms
24,192 KB |
testcase_28 | WA | - |
testcase_29 | AC | 50 ms
23,604 KB |
testcase_30 | AC | 83 ms
23,636 KB |
testcase_31 | WA | - |
testcase_32 | AC | 82 ms
23,476 KB |
testcase_33 | WA | - |
testcase_34 | AC | 87 ms
23,640 KB |
testcase_35 | WA | - |
testcase_36 | AC | 89 ms
23,856 KB |
testcase_37 | WA | - |
testcase_38 | AC | 89 ms
23,812 KB |
testcase_39 | WA | - |
testcase_40 | AC | 95 ms
24,004 KB |
testcase_41 | WA | - |
testcase_42 | AC | 99 ms
24,204 KB |
testcase_43 | WA | - |
testcase_44 | AC | 102 ms
24,000 KB |
testcase_45 | WA | - |
testcase_46 | AC | 102 ms
24,004 KB |
testcase_47 | WA | - |
testcase_48 | AC | 101 ms
23,644 KB |
testcase_49 | WA | - |
ソースコード
#!/usr/bin/env python3 import sys def main(): n = int(input()) l = 1 if n % 2 == 1: k = 1 r = n // 2 + 2 else: k = 2 r = n // 2 + 1 print(k, r - 1) sys.stdout.flush() while True: t = int(input()) if t != 3: break k, x = map(int, input().split()) if r <= x: y = x - r + l else: y = x - l + r print(k, y) sys.stdout.flush() main()