結果

問題 No.46 はじめのn歩
ユーザー 3qvwn3qvwn
提出日時 2019-07-01 23:20:43
言語 Elixir
(1.16.2)
結果
RE  
実行時間 -
コード長 271 bytes
コンパイル時間 1,054 ms
コンパイル使用メモリ 55,048 KB
実行使用メモリ 50,452 KB
最終ジャッジ日時 2023-08-29 23:28:56
合計ジャッジ時間 8,275 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 612 ms
50,048 KB
testcase_01 AC 605 ms
49,196 KB
testcase_02 AC 606 ms
49,324 KB
testcase_03 AC 609 ms
49,124 KB
testcase_04 AC 606 ms
50,292 KB
testcase_05 AC 616 ms
49,824 KB
testcase_06 AC 618 ms
49,236 KB
testcase_07 AC 606 ms
49,892 KB
testcase_08 RE -
testcase_09 AC 602 ms
49,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b] = IO.gets("") |> String.trim |> String.split |> Enum.map(fn str -> str <> ".0" end) |> Enum.map(&String.to_float(&1))
    n = b/a |> Float.ceil |> Float.to_string |> String.trim(".0") |> String.to_integer
    IO.puts n
  end
end
0