結果

問題 No.1429 Simple Dowsing
ユーザー dangodango
提出日時 2023-06-25 13:09:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 265 bytes
コンパイル時間 753 ms
コンパイル使用メモリ 86,944 KB
実行使用メモリ 91,540 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-15 08:55:45
合計ジャッジ時間 4,539 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
86,796 KB
testcase_01 AC 93 ms
86,664 KB
testcase_02 AC 95 ms
87,160 KB
testcase_03 AC 98 ms
91,132 KB
testcase_04 AC 97 ms
91,108 KB
testcase_05 AC 95 ms
86,972 KB
testcase_06 AC 99 ms
91,068 KB
testcase_07 AC 99 ms
91,528 KB
testcase_08 AC 97 ms
91,420 KB
testcase_09 AC 97 ms
91,540 KB
testcase_10 AC 93 ms
87,080 KB
testcase_11 AC 97 ms
91,208 KB
testcase_12 AC 98 ms
91,492 KB
testcase_13 AC 99 ms
90,920 KB
testcase_14 AC 96 ms
87,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0", flush = True)
d1 = int(input())
print("? 0 100", flush = True)
d2 = int(input())
for i in range(101):
    for j in range(101):
        if i * i + j * j == d1 and i * i + (100 - j) * (100 - j) == d2:
            print(f"! {i} {j}")
            exit(0)
0