結果

問題 No.481 1から10
ユーザー da_louisda_louis
提出日時 2020-02-07 01:02:32
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 317 ms / 2,000 ms
コード長 229 bytes
コンパイル時間 11,446 ms
コンパイル使用メモリ 432,744 KB
実行使用メモリ 54,696 KB
最終ジャッジ日時 2023-10-25 22:55:29
合計ジャッジ時間 15,581 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 316 ms
54,680 KB
testcase_01 AC 312 ms
54,672 KB
testcase_02 AC 307 ms
54,676 KB
testcase_03 AC 307 ms
54,680 KB
testcase_04 AC 313 ms
54,692 KB
testcase_05 AC 309 ms
54,676 KB
testcase_06 AC 308 ms
54,672 KB
testcase_07 AC 309 ms
54,672 KB
testcase_08 AC 317 ms
54,680 KB
testcase_09 AC 316 ms
54,696 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    p481()
}

fun p481() {
    val bList = readLine()!!.split(' ').map { it.toInt() }.toSet()

    val answer = (1..10).firstOrNull { it !in bList } ?: error("なんで?")

    println(answer)
}
0