結果

問題 No.1057 素敵な日
ユーザー yukyuyukyu
提出日時 2020-05-30 13:50:53
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 1,019 ms
コンパイル使用メモリ 54,632 KB
実行使用メモリ 51,368 KB
最終ジャッジ日時 2023-08-30 00:51:04
合計ジャッジ時間 8,120 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 626 ms
49,784 KB
testcase_01 AC 631 ms
49,120 KB
testcase_02 AC 619 ms
48,980 KB
testcase_03 WA -
testcase_04 AC 617 ms
49,768 KB
testcase_05 WA -
testcase_06 AC 618 ms
49,264 KB
testcase_07 WA -
testcase_08 AC 618 ms
49,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  defp maximun_nice_day([n, m]) when n >= m, do: m * 2
  defp maximun_nice_day([n, m]) when n < m, do: n * 2
  def main() do
    IO.gets("")
      |> String.trim
      |> String.split
      |> Enum.map(&String.to_integer/1)
      |> maximun_nice_day
      |> IO.puts
  end
end
0