結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | hashimoto |
提出日時 | 2015-07-30 16:34:53 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 282 ms |
コンパイル使用メモリ | 11,260 KB |
実行使用メモリ | 15,336 KB |
最終ジャッジ日時 | 2023-09-24 22:15:44 |
合計ジャッジ時間 | 2,077 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 80 ms
15,204 KB |
testcase_01 | AC | 81 ms
15,080 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | AC | 78 ms
15,132 KB |
testcase_10 | WA | - |
testcase_11 | WA | - |
コンパイルメッセージ
Syntax OK
ソースコード
koka = [1, 25, 100, 1000] gokei = 0 (koka.length - 1).times do |i| gokei += gets.to_i * koka[i] end koka_count = 0 (koka.length - 1).times do |i| koka_count += gokei % koka[koka.length - 1 - i] / koka[koka.length - 2 - i] end p koka_count