結果

問題 No.394 ハーフパイプ(1)
ユーザー komkomhkomkomh
提出日時 2019-06-10 08:21:43
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 373 ms / 2,000 ms
コード長 180 bytes
コンパイル時間 12,176 ms
コンパイル使用メモリ 429,860 KB
実行使用メモリ 57,900 KB
最終ジャッジ日時 2024-04-30 21:00:43
合計ジャッジ時間 17,057 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 368 ms
57,876 KB
testcase_01 AC 373 ms
57,860 KB
testcase_02 AC 370 ms
57,744 KB
testcase_03 AC 370 ms
57,772 KB
testcase_04 AC 373 ms
57,716 KB
testcase_05 AC 371 ms
57,872 KB
testcase_06 AC 372 ms
57,900 KB
testcase_07 AC 364 ms
57,776 KB
testcase_08 AC 368 ms
57,856 KB
testcase_09 AC 372 ms
57,712 KB
testcase_10 AC 365 ms
57,828 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:6:23: warning: unnecessary non-null assertion (!!) on a non-null receiver of type Float
    val ans = (S.sum()!! - S.min()!! - S.max()!!) / 4.0
                      ^
Main.kt:6:35: warning: unnecessary non-null assertion (!!) on a non-null receiver of type Float
    val ans = (S.sum()!! - S.min()!! - S.max()!!) / 4.0
                                  ^
Main.kt:6:47: warning: unnecessary non-null assertion (!!) on a non-null receiver of type Float
    val ans = (S.sum()!! - S.min()!! - S.max()!!) / 4.0
                                              ^

ソースコード

diff #

package yukicoder

fun main() {
    val S = readLine()!!.split(" ").map(String::toFloat)

    val ans = (S.sum()!! - S.min()!! - S.max()!!) / 4.0
    println("%.2f".format(ans))
}
0