結果

問題 No.965 門松列が嫌い
ユーザー daikiyamanedaikiyamane
提出日時 2020-01-27 00:05:05
言語 Elixir
(1.15.6)
結果
AC  
実行時間 633 ms / 1,000 ms
コード長 233 bytes
コンパイル時間 997 ms
コンパイル使用メモリ 54,700 KB
実行使用メモリ 49,964 KB
最終ジャッジ日時 2023-08-29 23:47:33
合計ジャッジ時間 8,526 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 627 ms
49,964 KB
testcase_01 AC 633 ms
49,352 KB
testcase_02 AC 626 ms
49,392 KB
testcase_03 AC 623 ms
49,420 KB
testcase_04 AC 625 ms
49,492 KB
testcase_05 AC 627 ms
49,412 KB
testcase_06 AC 627 ms
49,556 KB
testcase_07 AC 628 ms
49,344 KB
testcase_08 AC 619 ms
49,384 KB
testcase_09 AC 618 ms
49,848 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    num = IO.gets("") |> String.trim |> String.split |>Enum.map(&String.to_integer/1)
    check(num)
  end
  def check([a, b, c]) do
  [abs(a-b), abs(b-c), abs(c-a)] |> Enum.min |> IO.inspect
  end
end
0