結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,636 KB
testcase_01 AC 39 ms
23,468 KB
testcase_02 AC 37 ms
24,396 KB
testcase_03 AC 37 ms
24,276 KB
testcase_04 AC 35 ms
24,372 KB
testcase_05 AC 37 ms
23,696 KB
testcase_06 AC 37 ms
23,732 KB
testcase_07 AC 37 ms
23,520 KB
testcase_08 AC 37 ms
24,348 KB
testcase_09 AC 37 ms
24,408 KB
testcase_10 AC 35 ms
23,840 KB
testcase_11 AC 35 ms
24,504 KB
testcase_12 AC 36 ms
23,612 KB
testcase_13 AC 36 ms
23,940 KB
testcase_14 AC 37 ms
24,084 KB
権限があれば一括ダウンロードができます

ソースコード

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:
        y = (d0 - d1) // 200 + 50
        x = int(math.sqrt(d0-y**2))
        print("! {} {}".format(x, y))
0