結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-08-08 03:00:34 |
| 言語 | Elixir (1.18.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 356 bytes |
| コンパイル時間 | 2,099 ms |
| コンパイル使用メモリ | 62,724 KB |
| 実行使用メモリ | 55,024 KB |
| 最終ジャッジ日時 | 2024-08-08 03:00:47 |
| 合計ジャッジ時間 | 9,150 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 2 |
ソースコード
defmodule Main do
def input, do: IO.read(:line) |> String.trim
def ii, do: input() |> String.to_integer
def li, do: input() |> String.split |> Enum.map(&String.to_integer/1)
def yn(b), do: IO.puts(if b, do: "Yes", else: "No")
def main do
[x, y] = li()
d = :math.sqrt(x * x + y * y)
ans = ceil(2 * d + 0.5)
IO.puts ans
end
end
norioc