結果

問題 No.138 化石のバージョン
ユーザー mits58mits58
提出日時 2016-07-02 16:36:42
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 2,114 ms
コンパイル使用メモリ 74,516 KB
実行使用メモリ 55,800 KB
最終ジャッジ日時 2024-04-20 05:53:32
合計ジャッジ時間 6,350 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 106 ms
53,840 KB
testcase_01 AC 106 ms
53,988 KB
testcase_02 AC 110 ms
53,932 KB
testcase_03 AC 106 ms
53,820 KB
testcase_04 AC 104 ms
54,248 KB
testcase_05 AC 103 ms
54,024 KB
testcase_06 AC 109 ms
53,840 KB
testcase_07 AC 92 ms
52,804 KB
testcase_08 AC 107 ms
53,956 KB
testcase_09 AC 106 ms
53,832 KB
testcase_10 AC 108 ms
54,188 KB
testcase_11 AC 105 ms
54,192 KB
testcase_12 WA -
testcase_13 AC 94 ms
53,020 KB
testcase_14 WA -
testcase_15 AC 95 ms
52,936 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 107 ms
53,960 KB
testcase_20 AC 96 ms
52,776 KB
testcase_21 WA -
testcase_22 AC 108 ms
53,996 KB
testcase_23 AC 104 ms
54,200 KB
testcase_24 AC 108 ms
52,956 KB
testcase_25 AC 104 ms
53,904 KB
testcase_26 AC 106 ms
54,028 KB
testcase_27 AC 94 ms
53,028 KB
testcase_28 AC 104 ms
54,116 KB
testcase_29 WA -
testcase_30 AC 93 ms
52,656 KB
testcase_31 WA -
testcase_32 AC 104 ms
54,040 KB
testcase_33 WA -
testcase_34 AC 104 ms
53,184 KB
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			String[] s0=(sc.next()).split("\\.");
			String[] s1=(sc.next()).split("\\.");
			for(int i=0;i<3;i++){
				if(s0[i].compareTo(s1[i])<0){
					System.out.println("NO");
					break;
				}
				else if(s0[i].compareTo(s1[i])>0){
					System.out.println("YES");
					break;
				}
			}
		}
	}
}
0