結果

問題 No.481 1から10
ユーザー uchida_tuchida_t
提出日時 2023-05-30 13:12:20
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 301 ms / 2,000 ms
コード長 289 bytes
コンパイル時間 12,382 ms
コンパイル使用メモリ 417,560 KB
実行使用メモリ 53,072 KB
最終ジャッジ日時 2023-08-28 00:33:44
合計ジャッジ時間 16,158 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 295 ms
52,832 KB
testcase_01 AC 292 ms
52,832 KB
testcase_02 AC 293 ms
52,752 KB
testcase_03 AC 293 ms
52,944 KB
testcase_04 AC 294 ms
53,000 KB
testcase_05 AC 294 ms
52,904 KB
testcase_06 AC 297 ms
53,072 KB
testcase_07 AC 299 ms
52,832 KB
testcase_08 AC 301 ms
52,976 KB
testcase_09 AC 298 ms
52,844 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {

    val list = readLine()!!.split(" ").map { it.toInt() }


    for (i in 0 until 10) {
        if (i == 9) {
            println(10)
            break
        }
        if (list[i] != i + 1) {
            println(i + 1)
            break
        }
    }
}
0