結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2021-11-24 22:41:52 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 87 ms / 5,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 36 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-06-27 08:16:57 |
合計ジャッジ時間 | 1,700 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
Main.rb:18: warning: `/' after local variable or literal is interpreted as binary operator Main.rb:18: warning: even though it seems like regexp literal Syntax OK
ソースコード
l = gets.chomp!.to_im = gets.chomp!.to_in = gets.chomp!.to_icount = 0if n * 1 < 25count += nelsem += (n * 1) / 25count += (n * 1) % 25 / 1endif m * 25 < 100count += melsel += (m * 25) / 100count += (m * 25) % 100 /25endif l * 100 < 1000puts countelsecount += (l * 100) % 1000 / 100puts countend