結果
問題 | No.2414 2 KA 3 KA |
ユーザー |
![]() |
提出日時 | 2024-11-07 05:38:18 |
言語 | Elixir (1.18.1) |
結果 |
AC
|
実行時間 | 672 ms / 2,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 5,163 ms |
コンパイル使用メモリ | 61,084 KB |
実行使用メモリ | 54,416 KB |
最終ジャッジ日時 | 2024-11-07 05:38:45 |
合計ジャッジ時間 | 23,454 ms |
ジャッジサーバーID (参考情報) |
judge4 / 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 + b * c + c * a)y = a * b * cIO.puts if x > y, do: 2, else: 3endend