結果
問題 |
No.32 貯金箱の憂鬱
|
ユーザー |
|
提出日時 | 2025-09-09 20:07:42 |
言語 | Crystal (1.14.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 201 bytes |
コンパイル時間 | 12,668 ms |
コンパイル使用メモリ | 308,820 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-09 20:07:58 |
合計ジャッジ時間 | 13,833 ms |
ジャッジサーバーID (参考情報) |
judge / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | RE * 12 |
ソースコード
p = 0 l, m, s = gets.to_s.split.map(&.to_i) if s // 25 > 0 m += s // 25 s %= 25 end if m // 4 > 0 l += m // 4 m %= 4 end if l // 10 > 0 p += l // 10 l %= 10 end sum = l + m + s puts sum