結果
問題 |
No.1131 Deviation Score
|
ユーザー |
|
提出日時 | 2021-06-20 08:34:33 |
言語 | Swift (6.0.3) |
結果 |
AC
|
実行時間 | 104 ms / 2,000 ms |
コード長 | 173 bytes |
コンパイル時間 | 625 ms |
コンパイル使用メモリ | 120,008 KB |
実行使用メモリ | 13,452 KB |
最終ジャッジ日時 | 2024-06-22 22:26:54 |
合計ジャッジ時間 | 2,870 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 21 |
ソースコード
let n = readLine() let x = readLine()!.split(separator: " ").map{Double($0)!} let a = x.reduce(0) {$0 + $1} / Double(x.count) for i in x{ print(Int(50 - (a - i) / 2)) }