結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
_KingdomOfMoray
|
| 提出日時 | 2020-01-06 11:23:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 33 ms / 5,000 ms |
| コード長 | 254 bytes |
| コンパイル時間 | 134 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-11-22 23:53:16 |
| 合計ジャッジ時間 | 1,023 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import math
input_list = list(map(int,input().split()))
x, y = input_list
res = 0
distance = 2 * math.sqrt(x ** 2 + y ** 2)
if math.ceil(distance) == math.floor(distance):
res = distance + 1
else:
res = math.ceil(distance)
print(int(res))
_KingdomOfMoray