結果

問題 No.138 化石のバージョン
ユーザー dazydazy
提出日時 2016-09-14 06:28:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 5,000 ms
コード長 637 bytes
コンパイル時間 3,285 ms
コンパイル使用メモリ 71,980 KB
実行使用メモリ 56,436 KB
最終ジャッジ日時 2023-08-28 13:46:42
合計ジャッジ時間 9,346 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,064 KB
testcase_01 AC 121 ms
56,032 KB
testcase_02 AC 124 ms
55,656 KB
testcase_03 AC 123 ms
55,712 KB
testcase_04 AC 123 ms
56,132 KB
testcase_05 AC 122 ms
56,084 KB
testcase_06 AC 121 ms
55,532 KB
testcase_07 AC 119 ms
55,828 KB
testcase_08 AC 120 ms
55,808 KB
testcase_09 AC 121 ms
56,108 KB
testcase_10 AC 123 ms
56,080 KB
testcase_11 AC 123 ms
55,820 KB
testcase_12 AC 122 ms
56,036 KB
testcase_13 AC 122 ms
55,936 KB
testcase_14 AC 122 ms
56,032 KB
testcase_15 AC 120 ms
55,540 KB
testcase_16 AC 122 ms
55,992 KB
testcase_17 AC 121 ms
56,120 KB
testcase_18 AC 122 ms
56,088 KB
testcase_19 AC 124 ms
55,912 KB
testcase_20 AC 123 ms
53,916 KB
testcase_21 AC 123 ms
56,280 KB
testcase_22 AC 122 ms
55,780 KB
testcase_23 AC 122 ms
56,108 KB
testcase_24 AC 122 ms
55,912 KB
testcase_25 AC 121 ms
56,004 KB
testcase_26 AC 121 ms
55,688 KB
testcase_27 AC 121 ms
55,656 KB
testcase_28 AC 121 ms
55,792 KB
testcase_29 AC 122 ms
56,076 KB
testcase_30 AC 120 ms
55,904 KB
testcase_31 AC 117 ms
55,748 KB
testcase_32 AC 121 ms
56,436 KB
testcase_33 AC 120 ms
55,780 KB
testcase_34 AC 122 ms
55,736 KB
testcase_35 AC 121 ms
55,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        scan.useDelimiter("[^0-9]");
        int A = scan.nextInt();
        int B = scan.nextInt();
        int C = scan.nextInt();
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        boolean flag = false;
        if (a > A) flag = true;
        else if (a==A && b>B) flag = true;
        else if (a==A && b==B && c > C) flag = true;
        String ans;
        if (flag) ans = "NO";
        else ans = "YES";
        System.out.println(ans);
    }
}
0