結果

問題 No.1429 Simple Dowsing
ユーザー netyo715netyo715
提出日時 2021-03-14 14:12:44
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 244 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 24,384 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:02:00
合計ジャッジ時間 1,875 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
24,384 KB
testcase_01 AC 40 ms
23,364 KB
testcase_02 AC 40 ms
23,664 KB
testcase_03 AC 41 ms
24,384 KB
testcase_04 AC 41 ms
23,964 KB
testcase_05 AC 38 ms
23,928 KB
testcase_06 AC 37 ms
23,384 KB
testcase_07 AC 38 ms
23,544 KB
testcase_08 AC 37 ms
23,916 KB
testcase_09 AC 39 ms
24,228 KB
testcase_10 AC 39 ms
23,552 KB
testcase_11 AC 39 ms
23,796 KB
testcase_12 AC 40 ms
23,364 KB
testcase_13 AC 40 ms
23,744 KB
testcase_14 AC 39 ms
23,432 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0")
a = int(input())
print("? 0 100")
c = int(input())

for i in range(101):
    for j in range(101):
        if i**2+j**2 != a:
            continue
        if i**2 + (100-j)**2 != c:
            continue
        print(f"! {i} {j}")
0