結果

問題 No.32 貯金箱の憂鬱
ユーザー TakashinaInHubTakashinaInHub
提出日時 2016-01-27 21:46:53
言語 Ruby
(3.3.0)
結果
RE  
実行時間 -
コード長 191 bytes
コンパイル時間 40 ms
コンパイル使用メモリ 11,940 KB
実行使用メモリ 16,152 KB
最終ジャッジ日時 2023-10-21 16:25:47
合計ジャッジ時間 1,804 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
testcase_04 AC 87 ms
16,124 KB
testcase_05 AC 84 ms
16,124 KB
testcase_06 AC 89 ms
16,124 KB
testcase_07 AC 87 ms
16,124 KB
testcase_08 AC 86 ms
16,124 KB
testcase_09 RE -
testcase_10 AC 86 ms
16,124 KB
testcase_11 AC 86 ms
16,120 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l = gets.to_i
m = gets.to_i
n = gets.to_i

total = l*100 + m*25 + n*1
total %= 1000

n100 = total/100
total %= (100*n100)

n25 = total/25
total %= (25*n25)

n1 = total

puts "#{n100+n25+n1}"
0