結果

問題 No.1429 Simple Dowsing
ユーザー evimaevima
提出日時 2021-03-14 13:02:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 296 bytes
コンパイル時間 336 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 24,416 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 09:56:50
合計ジャッジ時間 1,865 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
23,812 KB
testcase_01 AC 40 ms
24,416 KB
testcase_02 AC 39 ms
24,084 KB
testcase_03 AC 42 ms
23,860 KB
testcase_04 AC 42 ms
24,376 KB
testcase_05 AC 39 ms
24,120 KB
testcase_06 AC 42 ms
23,956 KB
testcase_07 AC 42 ms
23,752 KB
testcase_08 AC 40 ms
23,948 KB
testcase_09 AC 40 ms
23,880 KB
testcase_10 AC 39 ms
23,840 KB
testcase_11 AC 41 ms
24,348 KB
testcase_12 AC 42 ms
24,024 KB
testcase_13 AC 40 ms
24,248 KB
testcase_14 AC 40 ms
24,092 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

M = 100
x1, y1, x2, y2 = 0, 0, 0, M
print('?', x1, y1)
d1 = int(input())
print('?', x2, y2)
d2 = int(input())
for i in range(M + 1):
    for j in range(M + 1):
        if (i - x1) ** 2 + (j - y1) ** 2 == d1 and (i - x2) ** 2 + (j - y2) ** 2 == d2:
            print('!', i, j)
            exit(0)
0