結果

問題 No.394 ハーフパイプ(1)
ユーザー バカらっくバカらっく
提出日時 2018-04-01 20:27:57
言語 Swift
(5.10.0)
結果
WA  
実行時間 -
コード長 223 bytes
コンパイル時間 1,915 ms
コンパイル使用メモリ 136,220 KB
実行使用メモリ 8,300 KB
最終ジャッジ日時 2023-08-20 10:37:53
合計ジャッジ時間 2,844 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
7,980 KB
testcase_01 AC 4 ms
8,016 KB
testcase_02 AC 4 ms
7,972 KB
testcase_03 AC 4 ms
7,956 KB
testcase_04 AC 4 ms
8,016 KB
testcase_05 AC 4 ms
7,908 KB
testcase_06 AC 4 ms
8,080 KB
testcase_07 WA -
testcase_08 AC 4 ms
7,904 KB
testcase_09 AC 4 ms
8,048 KB
testcase_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

let inpt = readLine()!.split(separator: " ").map{ Int($0)! * 100 }.sorted().dropFirst(1).dropLast(1)
var ans = String(inpt.reduce(0, { $0 + $1 }) / inpt.count)
ans = ans.prefix(ans.count-2) + "." + ans.suffix(2)
print(ans)
0