結果

問題 No.98 円を描こう
ユーザー steek79steek79
提出日時 2015-10-15 00:00:50
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 6,516 KB
実行使用メモリ 6,488 KB
最終ジャッジ日時 2023-09-28 21:08:35
合計ジャッジ時間 963 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,272 KB
testcase_01 AC 13 ms
6,440 KB
testcase_02 AC 14 ms
6,268 KB
testcase_03 AC 13 ms
6,128 KB
testcase_04 AC 13 ms
6,260 KB
testcase_05 AC 12 ms
6,284 KB
testcase_06 WA -
testcase_07 AC 12 ms
6,488 KB
testcase_08 AC 12 ms
6,360 KB
testcase_09 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import ceil
Px, Py = map(int, raw_input().split())

OP = (Px**2 + Py**2) ** 0.5
R = ceil(OP)

if OP%1 == 0:
    ans = 2*R + 1
else:
    ans = 2*R
print int(ans)
0