結果

問題 No.1429 Simple Dowsing
ユーザー convexineqconvexineq
提出日時 2021-03-14 16:19:04
言語 PyPy3
(7.3.15)
結果
QLE  
実行時間 -
コード長 216 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,128 KB
実行使用メモリ 92,052 KB
平均クエリ数 2.00
最終ジャッジ日時 2023-09-24 10:08:17
合計ジャッジ時間 2,987 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 QLE -
testcase_01 QLE -
testcase_02 QLE -
testcase_03 QLE -
testcase_04 QLE -
testcase_05 QLE -
testcase_06 QLE -
testcase_07 QLE -
testcase_08 QLE -
testcase_09 QLE -
testcase_10 QLE -
testcase_11 QLE -
testcase_12 QLE -
testcase_13 QLE -
testcase_14 QLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0",flush=1)
a = int(input())
print("? 0 100",flush=1)
b = int(input())
for i in range(101):
    for j in range(101):
        if i*i+j*j==a*a and i*i+(100-j)**2==b*b:
            print(f"! {i} {j}",flush=1)
0