結果

問題 No.1429 Simple Dowsing
ユーザー 小野寺健小野寺健
提出日時 2021-05-19 15:47:32
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 105 ms
コンパイル使用メモリ 10,592 KB
実行使用メモリ 24,432 KB
平均クエリ数 2.93
最終ジャッジ日時 2023-09-24 10:34:28
合計ジャッジ時間 1,721 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 37 ms
23,552 KB
testcase_02 AC 36 ms
23,752 KB
testcase_03 WA -
testcase_04 AC 35 ms
23,708 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 35 ms
24,012 KB
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

print("? 0 0")
d0 = int(input())
if d0 == 0:
    print("! 0 0")
else:
    print("? 0 100")
    d1 = int(input())
    if d1 == 0:
        print("! 0 100")
    else:
        x = (d0 - d1) // 200 + 50
        y = int(math.sqrt(d0-x**2))
        print("! {} {}".format(x, y))
0