結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー |
|
提出日時 | 2016-08-03 12:13:59 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 99 ms / 5,000 ms |
コード長 | 386 bytes |
コンパイル時間 | 53 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,416 KB |
最終ジャッジ日時 | 2024-07-23 02:22:19 |
合計ジャッジ時間 | 1,827 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
コンパイルメッセージ
Syntax OK
ソースコード
class Calc0032def initialize(args)args = args.map { |l| l.chomp.split(/\s+/) }@l = args.shift.first.to_i@m = args.shift.first.to_i@n = args.shift.first.to_ienddef runt = @l * 100 + @m * 25 + @nc100 = (t % 1000) / 100c25 = (t % 100) / 25c1 = t % 25c100 + c25 + c1endendputs Calc0032.new(STDIN.readlines).run if __FILE__ == $0