結果
問題 | No.191 供託金 |
ユーザー |
![]() |
提出日時 | 2016-10-12 09:03:03 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 93 ms / 5,000 ms |
コード長 | 158 bytes |
コンパイル時間 | 61 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-22 02:34:06 |
合計ジャッジ時間 | 3,262 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.to_i c = gets.chomp.split(" ").map(&:to_i) total = c.inject(:+) / 10 result = 0 c.each do |i| if i <= total result += 30 end end puts result