結果

問題 No.1057 素敵な日
ユーザー penqenpenqen
提出日時 2020-12-16 13:55:43
言語 Elixir
(1.16.2)
結果
RE  
実行時間 -
コード長 245 bytes
コンパイル時間 993 ms
コンパイル使用メモリ 55,108 KB
実行使用メモリ 51,156 KB
最終ジャッジ日時 2023-08-30 01:10:46
合計ジャッジ時間 7,469 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 558 ms
49,448 KB
testcase_01 AC 557 ms
49,376 KB
testcase_02 AC 557 ms
49,384 KB
testcase_03 RE -
testcase_04 AC 554 ms
49,416 KB
testcase_05 RE -
testcase_06 AC 561 ms
49,744 KB
testcase_07 RE -
testcase_08 AC 553 ms
49,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  
  def main do
    IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1) |> solve() |> IO.puts()
  end

  def solve([a, b]) when a < b, do: a * 2
  def solve([a, b]) when b < a, do: b * 2

end
0