結果
問題 | No.32 貯金箱の憂鬱 |
ユーザー | Makot3 |
提出日時 | 2017-06-29 22:32:50 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 83 ms / 5,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 11,484 KB |
実行使用メモリ | 15,304 KB |
最終ジャッジ日時 | 2023-09-30 12:10:13 |
合計ジャッジ時間 | 1,913 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 83 ms
15,116 KB |
testcase_01 | AC | 81 ms
15,124 KB |
testcase_02 | AC | 81 ms
15,120 KB |
testcase_03 | AC | 82 ms
15,040 KB |
testcase_04 | AC | 82 ms
15,048 KB |
testcase_05 | AC | 82 ms
15,148 KB |
testcase_06 | AC | 83 ms
15,260 KB |
testcase_07 | AC | 83 ms
15,304 KB |
testcase_08 | AC | 82 ms
15,152 KB |
testcase_09 | AC | 83 ms
15,168 KB |
testcase_10 | AC | 83 ms
15,260 KB |
testcase_11 | AC | 82 ms
15,164 KB |
コンパイルメッセージ
Syntax OK
ソースコード
l = gets.to_i m = gets.to_i n = gets.to_i sum = 0 if n != 0 sum = n % 25 m += n / 25 end if m != 0 sum += m % 4 l += m / 4 end if l != 0 sum += l % 10 end puts sum