結果

問題 No.191 供託金
ユーザー バカらっくバカらっく
提出日時 2022-02-03 12:53:51
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 288 ms / 5,000 ms
コード長 209 bytes
コンパイル時間 10,995 ms
コンパイル使用メモリ 418,036 KB
実行使用メモリ 53,080 KB
最終ジャッジ日時 2023-09-02 03:11:56
合計ジャッジ時間 20,102 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 273 ms
52,968 KB
testcase_01 AC 274 ms
52,628 KB
testcase_02 AC 281 ms
53,072 KB
testcase_03 AC 275 ms
52,800 KB
testcase_04 AC 278 ms
52,892 KB
testcase_05 AC 286 ms
52,668 KB
testcase_06 AC 285 ms
52,852 KB
testcase_07 AC 284 ms
53,080 KB
testcase_08 AC 273 ms
52,956 KB
testcase_09 AC 273 ms
52,728 KB
testcase_10 AC 276 ms
52,964 KB
testcase_11 AC 281 ms
52,976 KB
testcase_12 AC 278 ms
52,792 KB
testcase_13 AC 287 ms
53,008 KB
testcase_14 AC 279 ms
52,796 KB
testcase_15 AC 282 ms
52,992 KB
testcase_16 AC 282 ms
52,892 KB
testcase_17 AC 283 ms
52,892 KB
testcase_18 AC 276 ms
53,024 KB
testcase_19 AC 288 ms
52,720 KB
testcase_20 AC 279 ms
52,980 KB
testcase_21 AC 283 ms
52,904 KB
testcase_22 AC 281 ms
52,668 KB
testcase_23 AC 279 ms
52,908 KB
testcase_24 AC 282 ms
52,912 KB
testcase_25 AC 276 ms
52,860 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^
Main.kt:2:9: warning: variable 'n' is never used
    val n = readLine()!!.toInt()
        ^

ソースコード

diff #

fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val c = readLine()!!.split(" ").map { it.toInt() }
    val total = c.sum()
    val ans = c.count { it <= total / 10 }*30
    println(ans)
}
0