結果

問題 No.46 はじめのn歩
ユーザー shiroshiro
提出日時 2019-06-07 17:54:29
言語 Elixir
(1.16.2)
結果
AC  
実行時間 628 ms / 5,000 ms
コード長 250 bytes
コンパイル時間 1,239 ms
コンパイル使用メモリ 54,816 KB
実行使用メモリ 50,368 KB
最終ジャッジ日時 2023-08-29 23:26:58
合計ジャッジ時間 8,781 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 623 ms
49,316 KB
testcase_01 AC 615 ms
49,312 KB
testcase_02 AC 610 ms
49,928 KB
testcase_03 AC 612 ms
49,220 KB
testcase_04 AC 612 ms
49,356 KB
testcase_05 AC 616 ms
49,464 KB
testcase_06 AC 612 ms
50,368 KB
testcase_07 AC 617 ms
49,236 KB
testcase_08 AC 616 ms
49,176 KB
testcase_09 AC 628 ms
49,828 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