結果

問題 No.138 化石のバージョン
ユーザー matsuyoshi30matsuyoshi30
提出日時 2018-05-15 00:02:31
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 512 bytes
コンパイル時間 1,971 ms
コンパイル使用メモリ 71,288 KB
実行使用メモリ 57,540 KB
最終ジャッジ日時 2023-09-10 20:47:59
合計ジャッジ時間 7,665 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,084 KB
testcase_01 AC 118 ms
56,008 KB
testcase_02 AC 118 ms
55,440 KB
testcase_03 AC 118 ms
55,636 KB
testcase_04 AC 118 ms
56,184 KB
testcase_05 AC 118 ms
55,912 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 116 ms
55,792 KB
testcase_17 AC 119 ms
55,712 KB
testcase_18 AC 119 ms
56,176 KB
testcase_19 AC 119 ms
55,480 KB
testcase_20 AC 118 ms
55,864 KB
testcase_21 AC 116 ms
55,668 KB
testcase_22 AC 120 ms
55,584 KB
testcase_23 AC 122 ms
55,888 KB
testcase_24 AC 117 ms
55,812 KB
testcase_25 AC 117 ms
55,860 KB
testcase_26 WA -
testcase_27 AC 120 ms
56,072 KB
testcase_28 AC 115 ms
55,564 KB
testcase_29 AC 117 ms
55,916 KB
testcase_30 AC 118 ms
53,780 KB
testcase_31 AC 119 ms
56,048 KB
testcase_32 AC 117 ms
55,440 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String[] v1 = in.next().split("\\.");
        String[] v2 = in.next().split("\\.");

        String ans = "YES";
        for(int i = 0; i < 3; i++) {
            int k = Integer.parseInt(v1[i]);
            int t = Integer.parseInt(v2[i]);
            if(k < t) {
                ans = "NO";
                break;
            }
        }

        System.out.println(ans);
    }
}
0