結果
| 問題 | No.191 供託金 |
| コンテスト | |
| ユーザー |
harhogefoo
|
| 提出日時 | 2016-10-12 09:03:03 |
| 言語 | Ruby (4.0.2) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 5,000 ms |
| コード長 | 158 bytes |
| 記録 | |
| コンパイル時間 | 81 ms |
| コンパイル使用メモリ | 9,088 KB |
| 実行使用メモリ | 14,976 KB |
| 最終ジャッジ日時 | 2026-05-16 06:25:36 |
| 合計ジャッジ時間 | 2,858 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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
harhogefoo