結果

問題 No.138 化石のバージョン
ユーザー kou6839kou6839
提出日時 2015-01-30 22:27:29
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 644 bytes
コンパイル時間 2,563 ms
コンパイル使用メモリ 71,156 KB
実行使用メモリ 57,940 KB
最終ジャッジ日時 2023-09-05 08:25:35
合計ジャッジ時間 9,248 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
56,032 KB
testcase_01 AC 114 ms
55,684 KB
testcase_02 AC 116 ms
55,908 KB
testcase_03 AC 118 ms
55,868 KB
testcase_04 AC 118 ms
55,860 KB
testcase_05 AC 116 ms
55,756 KB
testcase_06 WA -
testcase_07 AC 114 ms
55,676 KB
testcase_08 AC 116 ms
55,672 KB
testcase_09 WA -
testcase_10 AC 116 ms
55,408 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 118 ms
55,952 KB
testcase_14 AC 119 ms
55,736 KB
testcase_15 AC 117 ms
55,752 KB
testcase_16 AC 117 ms
56,072 KB
testcase_17 AC 116 ms
56,044 KB
testcase_18 AC 119 ms
55,640 KB
testcase_19 AC 119 ms
55,828 KB
testcase_20 WA -
testcase_21 AC 116 ms
55,696 KB
testcase_22 AC 118 ms
55,688 KB
testcase_23 AC 121 ms
55,780 KB
testcase_24 AC 120 ms
55,360 KB
testcase_25 AC 119 ms
55,404 KB
testcase_26 AC 114 ms
55,680 KB
testcase_27 WA -
testcase_28 AC 116 ms
55,704 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 118 ms
56,232 KB
testcase_32 AC 119 ms
55,776 KB
testcase_33 WA -
testcase_34 AC 118 ms
55,748 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.*;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String aString = sc.next();
        String bString=sc.next();
        if((int)aString.charAt(0) < (int)bString.charAt(0) ){
        	System.out.println("NO");
        	return;
        }
        if((int)aString.charAt(2) < (int)bString.charAt(2) ){
        	System.out.println("NO");
        	return;
        }
        if((int)aString.charAt(4) < (int)bString.charAt(4) ){
        	System.out.println("NO");
        	return;
        }
        System.out.println("YES");
        
    }
}
0