結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2015-10-15 00:04:39 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 12 ms / 5,000 ms |
コード長 | 165 bytes |
コンパイル時間 | 77 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-21 15:58:26 |
合計ジャッジ時間 | 670 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
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))