結果

問題 No.594 壊れた宝物発見機
ユーザー Mr.FukuMr.Fuku
提出日時 2018-07-24 22:43:08
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 557 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 10,944 KB
実行使用メモリ 24,396 KB
平均クエリ数 140.05
最終ジャッジ日時 2023-09-23 16:11:05
合計ジャッジ時間 3,990 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 125 ms
23,340 KB
testcase_05 AC 118 ms
23,488 KB
testcase_06 AC 120 ms
24,048 KB
testcase_07 AC 124 ms
24,300 KB
testcase_08 AC 123 ms
23,616 KB
testcase_09 WA -
testcase_10 AC 127 ms
23,588 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 123 ms
23,576 KB
testcase_15 AC 111 ms
24,024 KB
testcase_16 WA -
testcase_17 AC 125 ms
23,424 KB
testcase_18 AC 121 ms
23,664 KB
testcase_19 AC 115 ms
24,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

P = []
for i in range(-1,2):
    for j in range(-1,2):
        for k in range(-1,2):
            P.append([i,j,k])
D = [50,25,13,7,4,2,1]
offset = [0,0,0]
for d in D:
    min_d = float("inf")
    for p in P:
        print("?",offset[0]+d*p[0],offset[1]+d*p[1],offset[2]+d*p[2])
        val = int(input())
        if min_d>val:
            min_d = val
            min_p = p
    offset = [offset[0]+d*min_p[0],offset[1]+d*min_p[1],offset[2]+d*min_p[2]]
    if min_p[0]==0 and min_p[1]==0 and min_p[2]==0:
        break
print("!",offset[0],offset[1],offset[2])
0