結果

問題 No.138 化石のバージョン
ユーザー komkomhkomkomh
提出日時 2019-06-07 12:58:31
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 342 ms / 5,000 ms
コード長 426 bytes
コンパイル時間 12,479 ms
コンパイル使用メモリ 432,760 KB
実行使用メモリ 57,072 KB
最終ジャッジ日時 2024-04-30 20:56:52
合計ジャッジ時間 25,390 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 318 ms
56,876 KB
testcase_01 AC 328 ms
57,072 KB
testcase_02 AC 319 ms
56,860 KB
testcase_03 AC 318 ms
56,800 KB
testcase_04 AC 314 ms
56,916 KB
testcase_05 AC 317 ms
56,944 KB
testcase_06 AC 318 ms
57,020 KB
testcase_07 AC 318 ms
56,884 KB
testcase_08 AC 315 ms
56,920 KB
testcase_09 AC 317 ms
56,892 KB
testcase_10 AC 315 ms
57,016 KB
testcase_11 AC 314 ms
56,888 KB
testcase_12 AC 317 ms
56,920 KB
testcase_13 AC 318 ms
56,940 KB
testcase_14 AC 317 ms
56,948 KB
testcase_15 AC 316 ms
56,884 KB
testcase_16 AC 315 ms
56,784 KB
testcase_17 AC 322 ms
56,860 KB
testcase_18 AC 318 ms
56,792 KB
testcase_19 AC 318 ms
56,780 KB
testcase_20 AC 320 ms
56,992 KB
testcase_21 AC 318 ms
56,968 KB
testcase_22 AC 321 ms
56,972 KB
testcase_23 AC 317 ms
56,996 KB
testcase_24 AC 326 ms
56,844 KB
testcase_25 AC 321 ms
56,808 KB
testcase_26 AC 318 ms
56,860 KB
testcase_27 AC 317 ms
56,916 KB
testcase_28 AC 315 ms
56,760 KB
testcase_29 AC 315 ms
56,932 KB
testcase_30 AC 325 ms
56,776 KB
testcase_31 AC 320 ms
56,960 KB
testcase_32 AC 321 ms
57,036 KB
testcase_33 AC 318 ms
56,936 KB
testcase_34 AC 332 ms
56,868 KB
testcase_35 AC 342 ms
56,980 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