結果

問題 No.1429 Simple Dowsing
ユーザー gorugo30gorugo30
提出日時 2021-03-14 14:05:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 318 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 87,348 KB
実行使用メモリ 92,048 KB
平均クエリ数 3.00
最終ジャッジ日時 2023-09-24 10:00:12
合計ジャッジ時間 3,057 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
87,296 KB
testcase_01 AC 98 ms
87,468 KB
testcase_02 AC 98 ms
87,308 KB
testcase_03 AC 100 ms
91,324 KB
testcase_04 AC 99 ms
91,688 KB
testcase_05 AC 98 ms
87,192 KB
testcase_06 AC 101 ms
91,592 KB
testcase_07 AC 100 ms
91,216 KB
testcase_08 AC 103 ms
91,356 KB
testcase_09 AC 102 ms
91,552 KB
testcase_10 AC 99 ms
87,528 KB
testcase_11 AC 103 ms
91,316 KB
testcase_12 AC 101 ms
91,816 KB
testcase_13 AC 102 ms
92,048 KB
testcase_14 AC 98 ms
87,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

print("? 0 0", flush = True)
r1 = int(input())
print("? 100 0", flush = True)
r2 = int(input())

for a in range(101):
    for b in range(101):
        if a * a + b * b != r1:
            continue
        if (100 - a) * (100 - a) + b * b != r2:
            continue
        print("!", a, b, flush = True)
        exit()
0