結果
問題 | No.191 供託金 |
ユーザー | Lycoris_i |
提出日時 | 2015-09-06 18:07:44 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 88 ms / 5,000 ms |
コード長 | 126 bytes |
コンパイル時間 | 131 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 12,288 KB |
最終ジャッジ日時 | 2024-11-16 21:36:28 |
合計ジャッジ時間 | 3,114 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.to_ic = gets.split(" ").map(&:to_i)l = c.inject(:+).to_f / 10ans = 0c.each {|i|ans += 30 if i <= l}puts ans