結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
24,152 KB
testcase_01 AC 40 ms
24,180 KB
testcase_02 AC 40 ms
23,780 KB
testcase_03 AC 43 ms
24,300 KB
testcase_04 AC 42 ms
24,216 KB
testcase_05 AC 40 ms
24,276 KB
testcase_06 AC 45 ms
24,284 KB
testcase_07 AC 41 ms
24,200 KB
testcase_08 AC 40 ms
24,288 KB
testcase_09 AC 41 ms
24,160 KB
testcase_10 AC 40 ms
23,828 KB
testcase_11 AC 41 ms
23,720 KB
testcase_12 AC 42 ms
24,264 KB
testcase_13 WA -
testcase_14 AC 39 ms
23,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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