結果

問題 No.56 消費税
ユーザー 3qvwn3qvwn
提出日時 2019-07-02 11:11:53
言語 Elixir
(1.16.2)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 2,275 ms
コンパイル使用メモリ 53,844 KB
実行使用メモリ 49,976 KB
最終ジャッジ日時 2023-08-29 23:33:01
合計ジャッジ時間 19,992 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 623 ms
49,284 KB
testcase_01 AC 620 ms
49,796 KB
testcase_02 AC 623 ms
49,164 KB
testcase_03 AC 626 ms
49,292 KB
testcase_04 AC 625 ms
49,456 KB
testcase_05 AC 628 ms
49,916 KB
testcase_06 AC 627 ms
49,792 KB
testcase_07 AC 628 ms
49,324 KB
testcase_08 AC 626 ms
49,976 KB
testcase_09 AC 620 ms
49,944 KB
testcase_10 AC 624 ms
49,156 KB
testcase_11 WA -
testcase_12 AC 628 ms
49,908 KB
testcase_13 WA -
testcase_14 AC 627 ms
49,824 KB
testcase_15 AC 623 ms
49,108 KB
testcase_16 AC 624 ms
49,752 KB
testcase_17 AC 622 ms
49,820 KB
testcase_18 AC 617 ms
49,716 KB
testcase_19 AC 625 ms
49,308 KB
testcase_20 AC 617 ms
49,072 KB
testcase_21 AC 614 ms
49,248 KB
testcase_22 AC 609 ms
49,340 KB
testcase_23 AC 614 ms
49,380 KB
testcase_24 AC 610 ms
49,836 KB
testcase_25 AC 611 ms
49,204 KB
testcase_26 AC 618 ms
49,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [d,p] = IO.gets("") |> String.trim |> String.split |> Enum.map(&String.to_integer/1)
    d +  d * p / 100 |> Float.floor |> Float.to_string |> String.trim(".0") |> IO.puts
  end
end
0