結果

問題 No.388 階段 (1)
ユーザー shiroshiro
提出日時 2021-07-10 23:48:50
言語 Elixir
(1.16.2)
結果
AC  
実行時間 619 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 988 ms
コンパイル使用メモリ 54,776 KB
実行使用メモリ 50,124 KB
最終ジャッジ日時 2023-09-14 20:00:36
合計ジャッジ時間 11,534 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 610 ms
50,124 KB
testcase_01 AC 600 ms
49,512 KB
testcase_02 AC 586 ms
49,268 KB
testcase_03 AC 590 ms
49,336 KB
testcase_04 AC 591 ms
49,244 KB
testcase_05 AC 596 ms
49,940 KB
testcase_06 AC 594 ms
49,792 KB
testcase_07 AC 603 ms
49,392 KB
testcase_08 AC 599 ms
49,184 KB
testcase_09 AC 598 ms
49,344 KB
testcase_10 AC 619 ms
49,304 KB
testcase_11 AC 612 ms
49,380 KB
testcase_12 AC 606 ms
49,208 KB
testcase_13 AC 602 ms
49,936 KB
testcase_14 AC 590 ms
49,612 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