結果

問題 No.1429 Simple Dowsing
ユーザー mkawa2mkawa2
提出日時 2021-03-14 14:04:46
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 340 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 24,316 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 09:59:40
合計ジャッジ時間 1,708 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
24,160 KB
testcase_01 AC 36 ms
23,704 KB
testcase_02 AC 35 ms
24,180 KB
testcase_03 AC 38 ms
23,772 KB
testcase_04 AC 40 ms
24,316 KB
testcase_05 AC 37 ms
24,216 KB
testcase_06 AC 38 ms
23,800 KB
testcase_07 AC 38 ms
23,892 KB
testcase_08 AC 39 ms
23,956 KB
testcase_09 AC 38 ms
23,968 KB
testcase_10 AC 37 ms
23,764 KB
testcase_11 AC 38 ms
23,768 KB
testcase_12 AC 39 ms
24,188 KB
testcase_13 AC 38 ms
24,088 KB
testcase_14 AC 36 ms
23,756 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def ask(x,y):
    print("?",x,y,flush=True)
    return int(input())

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