結果
| 問題 | No.32 貯金箱の憂鬱 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-06-02 11:28:20 | 
| 言語 | Ruby (3.4.1) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 93 ms / 5,000 ms | 
| コード長 | 206 bytes | 
| コンパイル時間 | 308 ms | 
| コンパイル使用メモリ | 7,424 KB | 
| 実行使用メモリ | 12,288 KB | 
| 最終ジャッジ日時 | 2024-11-14 14:46:24 | 
| 合計ジャッジ時間 | 1,800 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 12 | 
コンパイルメッセージ
Main.rb:17: warning: assigned but unused variable - z Syntax OK
ソースコード
l = gets.to_s.to_i m = gets.to_s.to_i n = gets.to_s.to_i x = n / 25 if x > 0 n -= 25*x m += x end x = m / 4 if x > 0 m -= 4*x l += x end x = l / 10 if x > 0 l -= 10*x z = x end puts l + m + n
