結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
23,744 KB
testcase_01 AC 40 ms
23,808 KB
testcase_02 AC 39 ms
24,116 KB
testcase_03 WA -
testcase_04 AC 42 ms
23,632 KB
testcase_05 AC 40 ms
24,360 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 40 ms
24,196 KB
testcase_09 AC 40 ms
24,324 KB
testcase_10 AC 39 ms
24,212 KB
testcase_11 AC 40 ms
23,796 KB
testcase_12 WA -
testcase_13 AC 40 ms
23,912 KB
testcase_14 AC 38 ms
23,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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