結果
問題 |
No.191 供託金
|
ユーザー |
![]() |
提出日時 | 2016-10-12 09:02:47 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 98 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-22 02:34:00 |
合計ジャッジ時間 | 3,489 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 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| puts i if i <= total result += 30 end end puts result