結果

問題 No.1429 Simple Dowsing
ユーザー aaaaaaaaaa2230aaaaaaaaaa2230
提出日時 2021-03-14 14:08:34
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 330 bytes
コンパイル時間 349 ms
コンパイル使用メモリ 87,276 KB
実行使用メモリ 92,040 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:01:01
合計ジャッジ時間 3,082 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 94 ms
87,508 KB
testcase_01 AC 92 ms
87,000 KB
testcase_02 AC 90 ms
87,216 KB
testcase_03 AC 93 ms
91,868 KB
testcase_04 AC 93 ms
92,012 KB
testcase_05 AC 88 ms
86,876 KB
testcase_06 AC 94 ms
91,616 KB
testcase_07 AC 93 ms
91,904 KB
testcase_08 AC 94 ms
91,740 KB
testcase_09 AC 91 ms
92,020 KB
testcase_10 AC 90 ms
87,316 KB
testcase_11 AC 94 ms
91,436 KB
testcase_12 AC 94 ms
92,040 KB
testcase_13 AC 95 ms
92,036 KB
testcase_14 AC 90 ms
87,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

a,b = 0,100
c,d = 0,0

print("?",a,b)
sys.stdout.flush()
a1 = int(input())
print("?",c,d)
sys.stdout.flush()
a2 = int(input())

for i in range(0,101):
    for j in range(0,101):
        if (a-i)**2+(b-j)**2 == a1 and (c-i)**2+(d-j)**2 == a2:
            print("!",i,j)
            sys.stdout.flush()
            exit()
0