結果

問題 No.594 壊れた宝物発見機
ユーザー cleanttedcleantted
提出日時 2017-11-10 23:06:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 458 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 24,312 KB
平均クエリ数 111.60
最終ジャッジ日時 2023-09-23 14:50:22
合計ジャッジ時間 4,310 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 WA -
testcase_04 RE -
testcase_05 RE -
testcase_06 RE -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 120 ms
23,676 KB
testcase_16 RE -
testcase_17 AC 119 ms
23,532 KB
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ans = [0,0,0]

for i in range(3):
    up = 100
    down = -100
    while up != down:
        print("?", up, 0, 0)
        d1 = int(input())
        print("?", down, 0, 0)
        d2 = int(input())
        
        if d1 <= d2:
            down = (up + down)//2
        else:
            up = (up + down)//2
    ans[i] = up

print("!", ans[0], ans[1], ans[2])
0