結果

問題 No.388 階段 (1)
ユーザー shiroshiro
提出日時 2019-06-07 18:07:10
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 277 bytes
コンパイル時間 1,052 ms
コンパイル使用メモリ 55,472 KB
実行使用メモリ 50,180 KB
最終ジャッジ日時 2023-08-29 23:23:58
合計ジャッジ時間 11,756 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 608 ms
49,516 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 603 ms
49,164 KB
testcase_05 AC 614 ms
49,448 KB
testcase_06 AC 605 ms
49,300 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 614 ms
49,376 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [s, f] = IO.gets("")
              |> String.trim
              |> String.split(" ")
              |> Enum.map(&String.to_integer/1)
    Float.ceil(s/f)
    |> Kernel.trunc
    |> add_one
    |> IO.puts
  end
  def add_one(x), do: x + 1
end
0