結果

問題 No.1429 Simple Dowsing
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-03-14 14:17:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 421 bytes
コンパイル時間 71 ms
コンパイル使用メモリ 10,980 KB
実行使用メモリ 24,492 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:02:50
合計ジャッジ時間 1,791 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
23,944 KB
testcase_01 AC 42 ms
23,848 KB
testcase_02 AC 43 ms
23,708 KB
testcase_03 AC 44 ms
24,348 KB
testcase_04 AC 45 ms
24,464 KB
testcase_05 AC 40 ms
24,220 KB
testcase_06 AC 44 ms
24,036 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 41 ms
24,224 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 41 ms
24,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
print("? 0 0")
sys.stdout.flush()
d1 = int(input())
x, y = 0, 0
for i in range(101):
    for j in range(101):
        if i ** 2 + j ** 2 == d1:
            x, y = i, j
            break
print("?", x, y)
sys.stdout.flush()
d2 = int(input())
for i in range(101):
    for j in range(101):
        if (i - x) ** 2 + (j - y) ** 2 == d2:
            print("!", i, j)
            sys.stdout.flush()
            exit()
0