結果

問題 No.138 化石のバージョン
ユーザー mits58mits58
提出日時 2016-07-02 16:38:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 467 bytes
コンパイル時間 2,144 ms
コンパイル使用メモリ 75,292 KB
実行使用メモリ 54,028 KB
最終ジャッジ日時 2024-04-20 05:53:43
合計ジャッジ時間 7,933 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
41,160 KB
testcase_01 AC 116 ms
41,280 KB
testcase_02 AC 125 ms
41,440 KB
testcase_03 AC 132 ms
41,368 KB
testcase_04 AC 131 ms
41,152 KB
testcase_05 AC 107 ms
41,616 KB
testcase_06 AC 125 ms
41,272 KB
testcase_07 AC 131 ms
41,516 KB
testcase_08 AC 111 ms
40,240 KB
testcase_09 AC 130 ms
41,184 KB
testcase_10 AC 119 ms
41,104 KB
testcase_11 AC 125 ms
41,032 KB
testcase_12 AC 123 ms
41,376 KB
testcase_13 AC 115 ms
41,340 KB
testcase_14 AC 120 ms
41,376 KB
testcase_15 AC 134 ms
41,312 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 127 ms
41,380 KB
testcase_20 AC 121 ms
40,828 KB
testcase_21 WA -
testcase_22 AC 133 ms
41,400 KB
testcase_23 AC 132 ms
41,480 KB
testcase_24 AC 109 ms
41,080 KB
testcase_25 AC 126 ms
41,188 KB
testcase_26 AC 134 ms
41,280 KB
testcase_27 AC 124 ms
41,316 KB
testcase_28 AC 132 ms
41,216 KB
testcase_29 AC 131 ms
41,084 KB
testcase_30 AC 123 ms
41,208 KB
testcase_31 AC 135 ms
41,152 KB
testcase_32 AC 131 ms
40,956 KB
testcase_33 AC 125 ms
41,104 KB
testcase_34 AC 132 ms
41,332 KB
testcase_35 AC 112 ms
41,212 KB
権限があれば一括ダウンロードができます

ソースコード

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++){
				int a=Integer.parseInt(s0[i]);
				int b=Integer.parseInt(s1[i]);
				if(a>b){
					System.out.println("YES");
					break;
				}
				else if(b>a){
					System.out.println("NO");
					break;
				}
			}
		}
	}
}
0