結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 626 ms
49,696 KB
testcase_01 AC 621 ms
50,496 KB
testcase_02 AC 617 ms
49,156 KB
testcase_03 AC 625 ms
49,212 KB
testcase_04 AC 618 ms
49,404 KB
testcase_05 AC 620 ms
49,720 KB
testcase_06 AC 620 ms
50,380 KB
testcase_07 AC 615 ms
49,860 KB
testcase_08 AC 617 ms
49,120 KB
testcase_09 AC 620 ms
49,336 KB
testcase_10 AC 620 ms
49,440 KB
testcase_11 AC 610 ms
49,872 KB
testcase_12 AC 607 ms
49,212 KB
testcase_13 AC 608 ms
50,084 KB
testcase_14 AC 611 ms
49,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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