結果

問題 No.926 休日の平均
ユーザー penqenpenqen
提出日時 2020-12-25 01:24:44
言語 Elixir
(1.16.2)
結果
AC  
実行時間 571 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 1,063 ms
コンパイル使用メモリ 54,732 KB
実行使用メモリ 50,460 KB
最終ジャッジ日時 2023-08-30 01:16:19
合計ジャッジ時間 17,022 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 556 ms
49,876 KB
testcase_01 AC 566 ms
49,824 KB
testcase_02 AC 558 ms
49,484 KB
testcase_03 AC 563 ms
49,772 KB
testcase_04 AC 555 ms
49,860 KB
testcase_05 AC 560 ms
49,320 KB
testcase_06 AC 561 ms
49,196 KB
testcase_07 AC 552 ms
50,368 KB
testcase_08 AC 559 ms
49,416 KB
testcase_09 AC 558 ms
49,264 KB
testcase_10 AC 561 ms
50,032 KB
testcase_11 AC 560 ms
49,284 KB
testcase_12 AC 570 ms
49,248 KB
testcase_13 AC 561 ms
49,380 KB
testcase_14 AC 562 ms
50,048 KB
testcase_15 AC 563 ms
50,232 KB
testcase_16 AC 562 ms
50,460 KB
testcase_17 AC 571 ms
49,200 KB
testcase_18 AC 563 ms
49,844 KB
testcase_19 AC 567 ms
49,248 KB
testcase_20 AC 561 ms
49,284 KB
testcase_21 AC 562 ms
49,364 KB
testcase_22 AC 562 ms
49,240 KB
testcase_23 AC 562 ms
49,340 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b, c] = IO.read(:line) |> String.trim() |> String.split(" ") |> Enum.map(&String.to_integer/1)
    solve(a, b, c) |> IO.puts()
  end

  def solve(a, b, c) do
    Float.floor(a / b * c, 8)
  end
end
0