結果

問題 No.46 はじめのn歩
ユーザー shiroshiro
提出日時 2021-07-10 21:55:10
言語 Elixir
(1.16.2)
結果
AC  
実行時間 612 ms / 5,000 ms
コード長 241 bytes
コンパイル時間 1,048 ms
コンパイル使用メモリ 54,940 KB
実行使用メモリ 50,004 KB
最終ジャッジ日時 2023-09-14 19:58:06
合計ジャッジ時間 8,361 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 603 ms
49,360 KB
testcase_01 AC 610 ms
49,256 KB
testcase_02 AC 612 ms
49,324 KB
testcase_03 AC 608 ms
49,932 KB
testcase_04 AC 600 ms
49,456 KB
testcase_05 AC 610 ms
49,464 KB
testcase_06 AC 612 ms
49,844 KB
testcase_07 AC 607 ms
49,392 KB
testcase_08 AC 607 ms
50,004 KB
testcase_09 AC 608 ms
49,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b] = IO.gets("")
                |> String.trim
                |> String.split(" ")
                |> Enum.map(&String.to_integer/1)

    Float.ceil(b/a)
    |> Kernel.trunc
    |> IO.puts

  end
end
0