結果

問題 No.32 貯金箱の憂鬱
ユーザー shi-moshi-mo
提出日時 2016-03-22 16:06:56
言語 Ruby
(3.2.2)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 161 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 11,388 KB
実行使用メモリ 15,288 KB
最終ジャッジ日時 2023-09-30 08:04:14
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,024 KB
testcase_01 AC 80 ms
15,112 KB
testcase_02 AC 79 ms
15,076 KB
testcase_03 AC 79 ms
15,276 KB
testcase_04 AC 79 ms
15,028 KB
testcase_05 AC 82 ms
15,288 KB
testcase_06 AC 78 ms
15,260 KB
testcase_07 AC 80 ms
15,224 KB
testcase_08 AC 84 ms
15,108 KB
testcase_09 AC 79 ms
15,112 KB
testcase_10 AC 84 ms
15,076 KB
testcase_11 AC 80 ms
15,224 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

l, m, n = 3.times.map{ gets.to_i }

money = (100*l) + (25*m) + n
coins = money % 1000

l = coins / 100
m = (coins % 100) / 25
n = (coins % 100) % 25

puts l+m+n
0