結果

問題 No.365 ジェンガソート
ユーザー 👑 zeronosu77108zeronosu77108
提出日時 2021-02-10 19:18:36
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 495 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 11,034 ms
コンパイル使用メモリ 414,148 KB
実行使用メモリ 58,220 KB
最終ジャッジ日時 2023-09-22 14:33:40
合計ジャッジ時間 30,010 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
52,964 KB
testcase_01 AC 291 ms
52,864 KB
testcase_02 AC 293 ms
53,072 KB
testcase_03 AC 294 ms
52,960 KB
testcase_04 AC 295 ms
53,084 KB
testcase_05 AC 296 ms
52,940 KB
testcase_06 AC 288 ms
53,008 KB
testcase_07 AC 290 ms
52,908 KB
testcase_08 AC 290 ms
52,964 KB
testcase_09 AC 288 ms
52,972 KB
testcase_10 AC 289 ms
52,972 KB
testcase_11 AC 293 ms
52,996 KB
testcase_12 AC 291 ms
53,056 KB
testcase_13 AC 292 ms
52,976 KB
testcase_14 AC 292 ms
53,208 KB
testcase_15 AC 302 ms
53,240 KB
testcase_16 AC 491 ms
57,928 KB
testcase_17 AC 488 ms
57,924 KB
testcase_18 AC 381 ms
53,524 KB
testcase_19 AC 495 ms
57,908 KB
testcase_20 AC 464 ms
57,884 KB
testcase_21 AC 455 ms
57,688 KB
testcase_22 AC 490 ms
58,128 KB
testcase_23 AC 471 ms
58,068 KB
testcase_24 AC 487 ms
57,780 KB
testcase_25 AC 450 ms
57,856 KB
testcase_26 AC 471 ms
57,824 KB
testcase_27 AC 493 ms
57,888 KB
testcase_28 AC 471 ms
57,684 KB
testcase_29 AC 486 ms
58,100 KB
testcase_30 AC 471 ms
57,724 KB
testcase_31 AC 453 ms
57,796 KB
testcase_32 AC 452 ms
57,892 KB
testcase_33 AC 494 ms
57,700 KB
testcase_34 AC 415 ms
56,260 KB
testcase_35 AC 482 ms
57,864 KB
testcase_36 AC 484 ms
57,960 KB
testcase_37 AC 487 ms
58,220 KB
testcase_38 AC 487 ms
57,896 KB
testcase_39 AC 495 ms
57,844 KB
testcase_40 AC 487 ms
57,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val n = readLine()!!.toInt()
    val a = readLine()!!.split(" ").map { it.toInt() }.reversed()

    var last = n
    for (ai in a) if (ai == last) last--

    println(last)
}
0