結果

問題 No.1429 Simple Dowsing
ユーザー lloyzlloyz
提出日時 2022-05-23 00:22:50
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 53 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 437 ms
コンパイル使用メモリ 11,824 KB
実行使用メモリ 26,460 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-10-20 17:23:23
合計ジャッジ時間 3,054 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
26,460 KB
testcase_01 AC 53 ms
26,460 KB
testcase_02 AC 50 ms
26,460 KB
testcase_03 AC 52 ms
26,460 KB
testcase_04 AC 51 ms
26,460 KB
testcase_05 AC 50 ms
26,460 KB
testcase_06 AC 51 ms
26,460 KB
testcase_07 AC 50 ms
26,460 KB
testcase_08 AC 51 ms
26,460 KB
testcase_09 AC 50 ms
26,460 KB
testcase_10 AC 50 ms
26,460 KB
testcase_11 AC 51 ms
26,460 KB
testcase_12 AC 50 ms
26,460 KB
testcase_13 AC 50 ms
26,460 KB
testcase_14 AC 50 ms
26,460 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0")
d1 = int(input())
print("? 100 0")
d2 = int(input())

a = (d1 - d2 + 10000) // 200
bsq = d1 - a**2
for i in range(101):
    if i**2 == bsq:
        b = i
        break
print(f"! {a} {b}")
0