結果

問題 No.1406 Test
ユーザー face4face4
提出日時 2021-04-11 14:03:17
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 303 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 14,240 ms
コンパイル使用メモリ 414,956 KB
実行使用メモリ 54,524 KB
最終ジャッジ日時 2023-09-09 16:27:55
合計ジャッジ時間 24,225 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 293 ms
52,672 KB
testcase_01 AC 290 ms
54,524 KB
testcase_02 AC 294 ms
52,564 KB
testcase_03 AC 295 ms
52,744 KB
testcase_04 AC 287 ms
52,744 KB
testcase_05 AC 291 ms
52,584 KB
testcase_06 AC 289 ms
52,632 KB
testcase_07 AC 266 ms
50,080 KB
testcase_08 AC 288 ms
52,888 KB
testcase_09 AC 271 ms
49,992 KB
testcase_10 AC 290 ms
52,848 KB
testcase_11 AC 291 ms
52,960 KB
testcase_12 AC 302 ms
52,836 KB
testcase_13 AC 294 ms
52,640 KB
testcase_14 AC 303 ms
52,868 KB
testcase_15 AC 292 ms
52,764 KB
testcase_16 AC 292 ms
52,832 KB
testcase_17 AC 272 ms
49,984 KB
testcase_18 AC 289 ms
52,660 KB
testcase_19 AC 292 ms
52,520 KB
testcase_20 AC 269 ms
49,952 KB
testcase_21 AC 296 ms
52,632 KB
testcase_22 AC 292 ms
52,688 KB
testcase_23 AC 301 ms
53,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val n = readLine()!!.toInt()
    println(when(n){
        1 -> 101
        else -> readLine()!!.split(" ").sumOf{it.toInt()}.let{sum ->
            (0..100).filter{(sum+it)%n==0}.size
        }
    })
}
0