結果

問題 No.46 はじめのn歩
ユーザー shiroshiro
提出日時 2021-07-17 22:32:42
言語 Elixir
(1.16.2)
結果
AC  
実行時間 555 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 3,023 ms
コンパイル使用メモリ 53,692 KB
実行使用メモリ 50,600 KB
最終ジャッジ日時 2023-09-21 19:57:09
合計ジャッジ時間 9,682 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 552 ms
49,380 KB
testcase_01 AC 551 ms
49,760 KB
testcase_02 AC 555 ms
49,448 KB
testcase_03 AC 551 ms
49,660 KB
testcase_04 AC 552 ms
50,496 KB
testcase_05 AC 552 ms
49,188 KB
testcase_06 AC 546 ms
49,252 KB
testcase_07 AC 549 ms
49,320 KB
testcase_08 AC 550 ms
50,600 KB
testcase_09 AC 545 ms
49,368 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)
    |> trunc
    |> IO.puts

  end
end
0