結果

問題 No.1429 Simple Dowsing
ユーザー NatsubiSoganNatsubiSogan
提出日時 2021-03-14 14:23:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 331 bytes
コンパイル時間 281 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 24,336 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:03:37
合計ジャッジ時間 1,956 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
23,748 KB
testcase_01 AC 36 ms
23,920 KB
testcase_02 AC 35 ms
24,336 KB
testcase_03 AC 38 ms
23,812 KB
testcase_04 AC 39 ms
23,708 KB
testcase_05 AC 36 ms
23,868 KB
testcase_06 AC 37 ms
24,324 KB
testcase_07 AC 39 ms
24,072 KB
testcase_08 AC 36 ms
23,760 KB
testcase_09 AC 37 ms
23,796 KB
testcase_10 AC 36 ms
23,936 KB
testcase_11 AC 37 ms
24,084 KB
testcase_12 AC 38 ms
24,252 KB
testcase_13 AC 35 ms
23,664 KB
testcase_14 AC 37 ms
24,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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