結果
| 問題 |
No.32 貯金箱の憂鬱
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-08-20 23:46:23 |
| 言語 | Ruby (3.4.1) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 5,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 255 ms |
| コンパイル使用メモリ | 7,968 KB |
| 実行使用メモリ | 13,056 KB |
| 最終ジャッジ日時 | 2025-08-20 23:46:25 |
| 合計ジャッジ時間 | 2,276 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 12 |
コンパイルメッセージ
Main.rb:7: warning: assigned but unused variable - converted_a Syntax OK
ソースコード
a=gets.to_i b=gets.to_i c=gets.to_i converted_c, remained_c = c.divmod(25) converted_b, remained_b = (b + converted_c).divmod(4) converted_a, remained_a = (a + converted_b).divmod(10) puts remained_a + remained_b + remained_c