結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,392 KB
testcase_01 AC 119 ms
55,704 KB
testcase_02 AC 119 ms
55,576 KB
testcase_03 AC 120 ms
55,456 KB
testcase_04 AC 119 ms
55,632 KB
testcase_05 AC 119 ms
55,428 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 119 ms
55,988 KB
testcase_17 AC 120 ms
55,708 KB
testcase_18 AC 121 ms
55,768 KB
testcase_19 AC 122 ms
55,692 KB
testcase_20 AC 123 ms
55,380 KB
testcase_21 AC 121 ms
56,016 KB
testcase_22 AC 125 ms
55,428 KB
testcase_23 AC 120 ms
55,720 KB
testcase_24 AC 120 ms
55,708 KB
testcase_25 AC 120 ms
55,780 KB
testcase_26 WA -
testcase_27 AC 124 ms
55,524 KB
testcase_28 AC 122 ms
55,744 KB
testcase_29 AC 121 ms
55,632 KB
testcase_30 AC 123 ms
55,812 KB
testcase_31 AC 118 ms
55,640 KB
testcase_32 AC 124 ms
53,512 KB
testcase_33 WA -
testcase_34 WA -
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();
        StringTokenizer aa = new StringTokenizer(aString, ".");
        StringTokenizer bb = new StringTokenizer(bString, ".");
        int a1=Integer.parseInt(aa.nextToken());
        int a2=Integer.parseInt(aa.nextToken());
        int a3=Integer.parseInt(aa.nextToken());
        int b1 = Integer.parseInt(bb.nextToken());
        int b2 = Integer.parseInt(bb.nextToken());
        int b3 = Integer.parseInt(bb.nextToken());
        if(a1<b1 ){
        	System.out.println("NO");
        	return;
        }
        if(a2<b2){
        	System.out.println("NO");
        	return;
        }
        if(a3<b3 ){
        	System.out.println("NO");
        	return;
        }
        System.out.println("YES");
        
    }
}		
0