結果

問題 No.481 1から10
ユーザー uchida_tuchida_t
提出日時 2023-05-30 13:11:18
言語 Kotlin
(1.9.23)
結果
WA  
実行時間 -
コード長 280 bytes
コンパイル時間 11,875 ms
コンパイル使用メモリ 417,184 KB
実行使用メモリ 56,196 KB
最終ジャッジ日時 2023-08-28 00:33:21
合計ジャッジ時間 16,065 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

fun main(args: Array<String>) {

    val list = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9)


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