結果

問題 No.98 円を描こう
ユーザー kutsutama
提出日時 2019-01-16 12:42:55
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-06-27 20:04:40
合計ジャッジ時間 1,118 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

xp, yp = [int(x) for x in input().split()]

res = 0
r2 = xp * xp + yp * yp
r_can = int(math.floor(math.sqrt(r2)))
for r in range(r_can, 2 * 10**4):
    if r * r > r2:
        res = 2 * r
        break

print(res)
0