結果

問題 No.388 階段 (1)
ユーザー gemmarogemmaro
提出日時 2020-04-08 11:44:29
言語 Elixir
(1.16.2)
結果
AC  
実行時間 611 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 1,116 ms
コンパイル使用メモリ 55,268 KB
実行使用メモリ 50,496 KB
最終ジャッジ日時 2023-08-30 00:01:23
合計ジャッジ時間 11,933 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 592 ms
49,980 KB
testcase_01 AC 591 ms
49,184 KB
testcase_02 AC 598 ms
49,164 KB
testcase_03 AC 608 ms
49,752 KB
testcase_04 AC 605 ms
49,340 KB
testcase_05 AC 611 ms
49,956 KB
testcase_06 AC 599 ms
49,288 KB
testcase_07 AC 593 ms
49,544 KB
testcase_08 AC 600 ms
50,180 KB
testcase_09 AC 599 ms
49,168 KB
testcase_10 AC 604 ms
49,256 KB
testcase_11 AC 607 ms
49,376 KB
testcase_12 AC 604 ms
50,496 KB
testcase_13 AC 604 ms
50,352 KB
testcase_14 AC 603 ms
49,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

    (Float.floor(s / f) + 1)
    |> trunc
    |> IO.puts()
  end
end
0