結果
問題 | No.2502 Optimization in the Dark |
ユーザー | mkawa2 |
提出日時 | 2023-10-13 23:50:30 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 510 ms |
コンパイル使用メモリ | 10,904 KB |
実行使用メモリ | 24,504 KB |
平均クエリ数 | 4.00 |
最終ジャッジ日時 | 2023-10-13 23:50:42 |
合計ジャッジ時間 | 4,733 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 44 ms
24,252 KB |
testcase_01 | AC | 40 ms
23,864 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 41 ms
23,600 KB |
testcase_05 | AC | 40 ms
24,024 KB |
testcase_06 | WA | - |
testcase_07 | AC | 39 ms
23,584 KB |
testcase_08 | AC | 40 ms
23,456 KB |
testcase_09 | AC | 40 ms
23,692 KB |
testcase_10 | WA | - |
testcase_11 | AC | 40 ms
23,836 KB |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | AC | 40 ms
23,744 KB |
testcase_18 | AC | 49 ms
23,628 KB |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | AC | 39 ms
23,456 KB |
testcase_23 | AC | 40 ms
24,324 KB |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | AC | 39 ms
24,168 KB |
testcase_27 | AC | 40 ms
24,420 KB |
testcase_28 | AC | 39 ms
24,000 KB |
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 | - |
ソースコード
def ask(i, x, j, y): print("?", i, x, j, y,flush=True) return input() == "Yes" n = int(input()) z = 1 if ask(z, 2*n, 2, 2*n): z = 2 if ask(z, 2*n, 3, 2*n): z = 3 y = z-1 if y == 0: y = 3 x = 6-y-z if ask(x, 2*n-1, y, 2*n-1): x, y = y, x ans = [x, y, y, z, x, z]*n print("!", *ans[::-1],flush=True)