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