結果

問題 No.32 貯金箱の憂鬱
ユーザー tshigitshigi
提出日時 2016-07-29 17:41:08
言語 Ruby
(3.3.0)
結果
AC  
実行時間 87 ms / 5,000 ms
コード長 228 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 11,424 KB
実行使用メモリ 15,248 KB
最終ジャッジ日時 2023-09-30 08:10:50
合計ジャッジ時間 1,800 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,224 KB
testcase_01 AC 81 ms
15,216 KB
testcase_02 AC 81 ms
15,032 KB
testcase_03 AC 80 ms
15,248 KB
testcase_04 AC 82 ms
15,248 KB
testcase_05 AC 81 ms
15,120 KB
testcase_06 AC 81 ms
15,040 KB
testcase_07 AC 81 ms
15,136 KB
testcase_08 AC 81 ms
15,172 KB
testcase_09 AC 81 ms
15,140 KB
testcase_10 AC 81 ms
15,220 KB
testcase_11 AC 81 ms
15,208 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

inputs = STDIN.readlines.map(&:chomp)
l = inputs[0].to_i
m = inputs[1].to_i
n = inputs[2].to_i

total = l * 100 + m * 25 + n
new_l = (total % 1000) / 100
new_m = (total % 100) / 25
new_n = total % 25

puts new_l + new_m + new_n
0