結果

問題 No.1429 Simple Dowsing
ユーザー toshiro_yanagi
提出日時 2025-04-13 18:39:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 378 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 27,528 KB
平均クエリ数 3.00
最終ジャッジ日時 2025-04-13 18:39:28
合計ジャッジ時間 2,790 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

def f(r):
    def f1(r1):
        x = 0
        for i in range(1 + N):
            if i**2 > r1:
                return x
            x = i
        return x

    a = f1(r)
    b = 0 if a < N else f1(r - N)
    return a, b


N = 100
print("?", 0, 0)
r = int(input())
a, b = f(r)
print("?", a, b)
r = int(input())
x, y = f(r)
a = a + y if a < N else a - y
b += x
print("!", a, b)
0