結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
7,964 KB
testcase_01 AC 4 ms
7,956 KB
testcase_02 AC 3 ms
7,968 KB
testcase_03 AC 3 ms
7,948 KB
testcase_04 AC 3 ms
8,056 KB
testcase_05 AC 4 ms
7,952 KB
testcase_06 AC 4 ms
7,984 KB
testcase_07 WA -
testcase_08 AC 4 ms
8,004 KB
testcase_09 AC 4 ms
7,968 KB
testcase_10 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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