結果

問題 No.32 貯金箱の憂鬱
ユーザー akko_yukkyakko_yukky
提出日時 2017-04-24 16:16:47
言語 Ruby
(3.3.0)
結果
AC  
実行時間 73 ms / 5,000 ms
コード長 192 bytes
コンパイル時間 378 ms
コンパイル使用メモリ 11,488 KB
実行使用メモリ 15,336 KB
最終ジャッジ日時 2023-09-30 10:20:30
合計ジャッジ時間 2,471 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
15,144 KB
testcase_01 AC 69 ms
15,336 KB
testcase_02 AC 73 ms
15,204 KB
testcase_03 AC 66 ms
15,284 KB
testcase_04 AC 69 ms
15,108 KB
testcase_05 AC 67 ms
15,132 KB
testcase_06 AC 69 ms
15,200 KB
testcase_07 AC 68 ms
15,180 KB
testcase_08 AC 66 ms
15,116 KB
testcase_09 AC 66 ms
15,104 KB
testcase_10 AC 66 ms
15,132 KB
testcase_11 AC 67 ms
15,136 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

c100,c25,c1=$stdin.read.split(?\n).map(&:to_i)
sum = c100*100+c25*25+c1*1
b1000 = sum/1000
sum -= b1000*1000
c100 = sum/100
sum -= c100*100
c25 = sum/25
sum -= c25*25
c1 = sum
puts c100+c25+c1
0