結果

問題 No.1429 Simple Dowsing
コンテスト
ユーザー gorugo30
提出日時 2021-03-14 14:05:57
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 318 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 392 ms
コンパイル使用メモリ 85,176 KB
実行使用メモリ 76,968 KB
平均クエリ数 3.00
最終ジャッジ日時 2026-04-01 01:27:38
合計ジャッジ時間 1,976 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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