結果

問題 No.1429 Simple Dowsing
ユーザー 小野寺健
提出日時 2021-05-19 15:47:32
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 284 bytes
コンパイル時間 137 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 27,608 KB
平均クエリ数 2.93
最終ジャッジ日時 2024-07-17 11:24:55
合計ジャッジ時間 1,946 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 4 WA * 11
権限があれば一括ダウンロードができます

ソースコード

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