結果

問題 No.32 貯金箱の憂鬱
ユーザー 3qvwn3qvwn
提出日時 2019-07-02 12:01:49
言語 Elixir
(1.16.2)
結果
AC  
実行時間 623 ms / 5,000 ms
コード長 363 bytes
コンパイル時間 1,032 ms
コンパイル使用メモリ 54,796 KB
実行使用メモリ 49,996 KB
最終ジャッジ日時 2023-08-29 23:35:54
合計ジャッジ時間 9,963 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 618 ms
49,996 KB
testcase_01 AC 609 ms
49,104 KB
testcase_02 AC 612 ms
49,112 KB
testcase_03 AC 623 ms
49,168 KB
testcase_04 AC 611 ms
49,200 KB
testcase_05 AC 619 ms
49,304 KB
testcase_06 AC 606 ms
49,144 KB
testcase_07 AC 604 ms
49,292 KB
testcase_08 AC 605 ms
49,244 KB
testcase_09 AC 596 ms
49,204 KB
testcase_10 AC 599 ms
49,980 KB
testcase_11 AC 616 ms
49,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do 
  def main do 
    l = IO.gets("") |> String.trim |> String.to_integer
    m = IO.gets("") |> String.trim |> String.to_integer
    n = IO.gets("") |> String.trim |> String.to_integer
    sum = l*100+m*25+n |> rem(1000)
    ll = div(sum,100)
    mm = rem(sum,100) |> div(25)
    nn = rem(sum,100) |> rem(25)
    nn + mm + ll |> IO.puts
  end
end
0