結果

問題 No.46 はじめのn歩
ユーザー 3qvwn3qvwn
提出日時 2019-07-01 23:18:19
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 272 bytes
コンパイル時間 1,151 ms
コンパイル使用メモリ 55,152 KB
実行使用メモリ 50,044 KB
最終ジャッジ日時 2023-08-29 23:29:15
合計ジャッジ時間 8,679 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 619 ms
49,540 KB
testcase_01 AC 614 ms
49,140 KB
testcase_02 AC 635 ms
49,288 KB
testcase_03 WA -
testcase_04 AC 628 ms
49,260 KB
testcase_05 WA -
testcase_06 AC 630 ms
49,972 KB
testcase_07 WA -
testcase_08 RE -
testcase_09 AC 622 ms
49,184 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.round |> Float.to_string |> String.trim(".0") |> String.to_integer
    IO.puts n
  end
end
0