結果

問題 No.138 化石のバージョン
ユーザー バカらっくバカらっく
提出日時 2019-10-03 17:34:31
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 333 ms / 5,000 ms
コード長 411 bytes
コンパイル時間 24,780 ms
コンパイル使用メモリ 434,048 KB
実行使用メモリ 57,148 KB
最終ジャッジ日時 2024-04-14 09:34:59
合計ジャッジ時間 24,997 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 311 ms
57,008 KB
testcase_01 AC 314 ms
57,004 KB
testcase_02 AC 315 ms
56,964 KB
testcase_03 AC 317 ms
56,932 KB
testcase_04 AC 323 ms
57,032 KB
testcase_05 AC 314 ms
57,000 KB
testcase_06 AC 316 ms
57,144 KB
testcase_07 AC 315 ms
56,968 KB
testcase_08 AC 316 ms
56,904 KB
testcase_09 AC 321 ms
57,036 KB
testcase_10 AC 316 ms
57,064 KB
testcase_11 AC 314 ms
57,148 KB
testcase_12 AC 319 ms
57,028 KB
testcase_13 AC 314 ms
56,892 KB
testcase_14 AC 314 ms
56,944 KB
testcase_15 AC 312 ms
57,148 KB
testcase_16 AC 314 ms
56,944 KB
testcase_17 AC 333 ms
56,964 KB
testcase_18 AC 315 ms
56,952 KB
testcase_19 AC 314 ms
56,972 KB
testcase_20 AC 322 ms
56,968 KB
testcase_21 AC 317 ms
56,908 KB
testcase_22 AC 311 ms
56,796 KB
testcase_23 AC 313 ms
56,952 KB
testcase_24 AC 313 ms
56,936 KB
testcase_25 AC 316 ms
56,988 KB
testcase_26 AC 315 ms
56,912 KB
testcase_27 AC 313 ms
56,908 KB
testcase_28 AC 316 ms
57,012 KB
testcase_29 AC 314 ms
57,012 KB
testcase_30 AC 314 ms
57,012 KB
testcase_31 AC 316 ms
56,936 KB
testcase_32 AC 320 ms
56,952 KB
testcase_33 AC 315 ms
56,960 KB
testcase_34 AC 318 ms
56,916 KB
testcase_35 AC 318 ms
56,932 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args:Array<String>) {
         ^

ソースコード

diff #

fun main(args:Array<String>) {
    val isOlder = (1..2).map { readLine()!!.split(".").map { it.toInt() } }.let { a-> isOld(a[0], a[1]) }
    println(if(isOlder)"YES" else "NO")
}

fun isOld(arr1:List<Int>, arr2:List<Int>):Boolean {
    for((i,v) in arr1.withIndex()) {
        if(arr2[i] > v) {
            return false
        } else if(arr2[i] < v) {
            return true
        }
    }
    return true
}
0