結果

問題 No.138 化石のバージョン
ユーザー komkomhkomkomh
提出日時 2019-06-07 12:58:31
言語 Kotlin
(1.9.10)
結果
AC  
実行時間 300 ms / 5,000 ms
コード長 426 bytes
コンパイル時間 14,683 ms
コンパイル使用メモリ 414,220 KB
実行使用メモリ 53,088 KB
最終ジャッジ日時 2023-08-13 02:29:22
合計ジャッジ時間 25,692 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 287 ms
52,816 KB
testcase_01 AC 291 ms
52,784 KB
testcase_02 AC 294 ms
52,836 KB
testcase_03 AC 300 ms
52,756 KB
testcase_04 AC 291 ms
52,920 KB
testcase_05 AC 286 ms
52,812 KB
testcase_06 AC 293 ms
52,780 KB
testcase_07 AC 286 ms
52,632 KB
testcase_08 AC 289 ms
52,796 KB
testcase_09 AC 284 ms
52,744 KB
testcase_10 AC 287 ms
52,816 KB
testcase_11 AC 290 ms
52,800 KB
testcase_12 AC 291 ms
52,784 KB
testcase_13 AC 292 ms
52,780 KB
testcase_14 AC 290 ms
52,836 KB
testcase_15 AC 287 ms
52,836 KB
testcase_16 AC 283 ms
52,836 KB
testcase_17 AC 288 ms
52,784 KB
testcase_18 AC 296 ms
53,088 KB
testcase_19 AC 294 ms
52,772 KB
testcase_20 AC 293 ms
52,716 KB
testcase_21 AC 299 ms
52,720 KB
testcase_22 AC 296 ms
52,728 KB
testcase_23 AC 292 ms
52,804 KB
testcase_24 AC 295 ms
52,692 KB
testcase_25 AC 300 ms
53,024 KB
testcase_26 AC 294 ms
52,896 KB
testcase_27 AC 294 ms
52,856 KB
testcase_28 AC 288 ms
53,036 KB
testcase_29 AC 289 ms
52,848 KB
testcase_30 AC 289 ms
52,752 KB
testcase_31 AC 292 ms
52,620 KB
testcase_32 AC 291 ms
52,792 KB
testcase_33 AC 290 ms
52,872 KB
testcase_34 AC 292 ms
52,796 KB
testcase_35 AC 288 ms
52,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder

fun main() {
    val kasekiVersion = readLine()!!.split(".").map(String::toInt)
    val checkVersion = readLine()!!.split(".").map(String::toInt)

    for (i in 0 until 3) {
        if (checkVersion[i] < kasekiVersion[i]) {
            println("YES")
            return
        } else if (checkVersion[i] > kasekiVersion[i]){
            println("NO")
            return
        }
    }
    println("YES")
}
0