結果
問題 |
No.1131 Deviation Score
|
ユーザー |
![]() |
提出日時 | 2021-11-11 16:49:07 |
言語 | Ruby (3.4.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 115 bytes |
コンパイル時間 | 195 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 20,352 KB |
最終ジャッジ日時 | 2024-11-23 00:11:19 |
合計ジャッジ時間 | 6,749 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 20 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.to_i x = gets.chomp.split.map(&:to_i) ave = x.sum / x.length for a in x p (50 + (a - ave) / 2).round end