結果

問題 No.1429 Simple Dowsing
ユーザー hiragnhiragn
提出日時 2022-10-25 04:43:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 99 ms
コンパイル使用メモリ 10,568 KB
実行使用メモリ 24,364 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-16 05:12:53
合計ジャッジ時間 1,985 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
24,324 KB
testcase_01 AC 38 ms
23,936 KB
testcase_02 AC 39 ms
23,852 KB
testcase_03 AC 40 ms
23,828 KB
testcase_04 AC 41 ms
24,312 KB
testcase_05 AC 41 ms
24,100 KB
testcase_06 AC 44 ms
23,912 KB
testcase_07 AC 41 ms
24,096 KB
testcase_08 AC 40 ms
23,724 KB
testcase_09 AC 39 ms
23,984 KB
testcase_10 AC 39 ms
24,276 KB
testcase_11 AC 39 ms
23,756 KB
testcase_12 AC 40 ms
23,972 KB
testcase_13 AC 41 ms
23,684 KB
testcase_14 AC 40 ms
24,364 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

for x in range(101):
    for y in range(101):
        if x ** 2 + y ** 2 == d1 and (x - 100) ** 2 + y ** 2 == d2:
            print("!", x, y)
            exit()
0