結果
問題 | No.2414 2 KA 3 KA |
ユーザー |
![]() |
提出日時 | 2024-11-07 05:36:41 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 670 ms / 2,000 ms |
コード長 | 384 bytes |
コンパイル時間 | 4,868 ms |
コンパイル使用メモリ | 60,868 KB |
実行使用メモリ | 54,224 KB |
最終ジャッジ日時 | 2024-11-07 05:37:08 |
合計ジャッジ時間 | 26,370 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 28 |
ソースコード
defmoduleMain dodef input, do: IO.read(:line) |> String.trimdef ii, do: input() |> String.to_integerdef 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[a, b, c] = li()x = (2 * a * b) + (2 * b * c) + (2 * c * a)y = a * b * cIO.puts if x > y, do: 2, else: 3endend