結果

問題 No.138 化石のバージョン
ユーザー dazy
提出日時 2016-09-14 06:28:44
言語 Java
(openjdk 23)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 637 bytes
コンパイル時間 3,701 ms
コンパイル使用メモリ 74,576 KB
実行使用メモリ 54,284 KB
最終ジャッジ日時 2024-12-29 14:10:16
合計ジャッジ時間 9,535 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

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