結果

問題 No.1429 Simple Dowsing
ユーザー convexineqconvexineq
提出日時 2021-03-14 16:20:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 102 ms / 2,000 ms
コード長 212 bytes
コンパイル時間 1,389 ms
コンパイル使用メモリ 86,780 KB
実行使用メモリ 91,924 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:08:02
合計ジャッジ時間 3,168 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
91,548 KB
testcase_01 AC 100 ms
91,896 KB
testcase_02 AC 101 ms
91,924 KB
testcase_03 AC 100 ms
91,540 KB
testcase_04 AC 99 ms
91,160 KB
testcase_05 AC 100 ms
91,604 KB
testcase_06 AC 99 ms
91,564 KB
testcase_07 AC 98 ms
91,632 KB
testcase_08 AC 98 ms
91,888 KB
testcase_09 AC 97 ms
91,216 KB
testcase_10 AC 98 ms
91,180 KB
testcase_11 AC 98 ms
91,312 KB
testcase_12 AC 98 ms
91,880 KB
testcase_13 AC 100 ms
91,240 KB
testcase_14 AC 100 ms
91,496 KB
権限があれば一括ダウンロードができます

ソースコード

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 and i*i+(100-j)**2==b:
            print(f"! {i} {j}",flush=1)
0