結果

問題 No.32 貯金箱の憂鬱
ユーザー TakashinaInHubTakashinaInHub
提出日時 2016-01-27 21:56:00
言語 Ruby
(3.3.0)
結果
AC  
実行時間 85 ms / 5,000 ms
コード長 159 bytes
コンパイル時間 58 ms
コンパイル使用メモリ 11,268 KB
実行使用メモリ 15,316 KB
最終ジャッジ日時 2023-09-30 08:02:22
合計ジャッジ時間 1,894 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,112 KB
testcase_01 AC 82 ms
15,316 KB
testcase_02 AC 85 ms
15,264 KB
testcase_03 AC 81 ms
15,232 KB
testcase_04 AC 80 ms
15,224 KB
testcase_05 AC 79 ms
15,216 KB
testcase_06 AC 78 ms
15,304 KB
testcase_07 AC 83 ms
15,092 KB
testcase_08 AC 79 ms
15,084 KB
testcase_09 AC 80 ms
15,120 KB
testcase_10 AC 81 ms
15,092 KB
testcase_11 AC 83 ms
15,292 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

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

n1 = n / 25
n -= n1 * 25
m += n1

n25 = m / 4
m -= n25 * 4
l += n25

n100 =  l / 10
l -= n100 * 10

puts "#{n+m+l}"
0