結果
問題 | No.98 円を描こう |
ユーザー | steek79 |
提出日時 | 2015-10-15 00:00:10 |
言語 | Python2 (2.7.18) |
結果 |
WA
|
実行時間 | - |
コード長 | 165 bytes |
コンパイル時間 | 129 ms |
コンパイル使用メモリ | 6,660 KB |
実行使用メモリ | 6,440 KB |
最終ジャッジ日時 | 2023-09-28 21:08:34 |
合計ジャッジ時間 | 1,053 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
ソースコード
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