結果

問題 No.46 はじめのn歩
ユーザー gemmarogemmaro
提出日時 2020-04-07 16:32:13
言語 Elixir
(1.16.2)
結果
AC  
実行時間 634 ms / 5,000 ms
コード長 234 bytes
コンパイル時間 1,185 ms
コンパイル使用メモリ 55,256 KB
実行使用メモリ 49,812 KB
最終ジャッジ日時 2023-08-29 23:59:30
合計ジャッジ時間 8,660 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 621 ms
49,200 KB
testcase_01 AC 623 ms
49,448 KB
testcase_02 AC 618 ms
49,812 KB
testcase_03 AC 629 ms
49,232 KB
testcase_04 AC 632 ms
49,456 KB
testcase_05 AC 633 ms
49,224 KB
testcase_06 AC 628 ms
49,540 KB
testcase_07 AC 617 ms
49,500 KB
testcase_08 AC 634 ms
49,384 KB
testcase_09 AC 626 ms
49,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b] =
      IO.gets("")
      |> String.trim()
      |> String.split()
      |> Enum.map(fn s -> String.to_integer(s) end)

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