結果

問題 No.98 円を描こう
ユーザー steek79steek79
提出日時 2015-10-15 00:04:39
言語 Python2
(2.7.18)
結果
AC  
実行時間 13 ms / 5,000 ms
コード長 165 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,440 KB
最終ジャッジ日時 2023-09-28 21:08:39
合計ジャッジ時間 913 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,380 KB
testcase_01 AC 13 ms
6,416 KB
testcase_02 AC 11 ms
6,324 KB
testcase_03 AC 12 ms
6,000 KB
testcase_04 AC 12 ms
6,440 KB
testcase_05 AC 12 ms
6,440 KB
testcase_06 AC 12 ms
6,272 KB
testcase_07 AC 12 ms
6,368 KB
testcase_08 AC 12 ms
6,328 KB
testcase_09 AC 11 ms
6,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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