結果

問題 No.56 消費税
ユーザー 3qvwn3qvwn
提出日時 2019-07-02 11:14:53
言語 Elixir
(1.16.2)
結果
AC  
実行時間 633 ms / 5,000 ms
コード長 186 bytes
コンパイル時間 1,005 ms
コンパイル使用メモリ 54,616 KB
実行使用メモリ 50,172 KB
最終ジャッジ日時 2023-08-29 23:34:43
合計ジャッジ時間 19,624 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 613 ms
49,256 KB
testcase_01 AC 623 ms
49,296 KB
testcase_02 AC 626 ms
49,352 KB
testcase_03 AC 618 ms
49,268 KB
testcase_04 AC 620 ms
49,148 KB
testcase_05 AC 618 ms
49,420 KB
testcase_06 AC 620 ms
49,136 KB
testcase_07 AC 616 ms
49,360 KB
testcase_08 AC 617 ms
49,940 KB
testcase_09 AC 621 ms
49,312 KB
testcase_10 AC 625 ms
49,480 KB
testcase_11 AC 621 ms
49,848 KB
testcase_12 AC 626 ms
49,388 KB
testcase_13 AC 620 ms
49,396 KB
testcase_14 AC 627 ms
49,728 KB
testcase_15 AC 626 ms
50,120 KB
testcase_16 AC 613 ms
49,324 KB
testcase_17 AC 616 ms
49,320 KB
testcase_18 AC 620 ms
49,340 KB
testcase_19 AC 613 ms
49,624 KB
testcase_20 AC 620 ms
49,120 KB
testcase_21 AC 616 ms
49,372 KB
testcase_22 AC 616 ms
49,280 KB
testcase_23 AC 618 ms
49,280 KB
testcase_24 AC 621 ms
50,172 KB
testcase_25 AC 609 ms
49,444 KB
testcase_26 AC 633 ms
49,224 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 |> trunc |> IO.puts
  end
end
0