結果

問題 No.394 ハーフパイプ(1)
ユーザー バカらっくバカらっく
提出日時 2018-04-01 20:25:06
言語 Swift
(5.10.0)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 213 bytes
コンパイル時間 6,336 ms
コンパイル使用メモリ 161,688 KB
実行使用メモリ 14,060 KB
最終ジャッジ日時 2023-08-20 10:37:46
合計ジャッジ時間 5,006 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
13,580 KB
testcase_01 AC 6 ms
13,576 KB
testcase_02 AC 6 ms
13,564 KB
testcase_03 AC 7 ms
13,468 KB
testcase_04 AC 7 ms
13,988 KB
testcase_05 AC 6 ms
13,556 KB
testcase_06 AC 6 ms
14,060 KB
testcase_07 AC 6 ms
14,012 KB
testcase_08 AC 6 ms
13,376 KB
testcase_09 AC 7 ms
13,988 KB
testcase_10 AC 6 ms
13,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation

let inpt = readLine()!.split(separator: " ").map{ Double($0)! }.sorted().dropFirst(1).dropLast(1)
let ans = inpt.reduce(0, { $0 + $1 }) / Double(inpt.count)
print(NSString(format: "%.2f", ans))
0