結果

問題 No.138 化石のバージョン
ユーザー カニ戯(ryカニ戯(ry
提出日時 2015-02-24 16:02:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 348 bytes
コンパイル時間 2,498 ms
コンパイル使用メモリ 71,700 KB
実行使用メモリ 55,976 KB
最終ジャッジ日時 2023-08-28 13:17:21
合計ジャッジ時間 7,998 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
53,788 KB
testcase_01 AC 121 ms
53,980 KB
testcase_02 AC 120 ms
55,828 KB
testcase_03 AC 121 ms
55,652 KB
testcase_04 AC 123 ms
55,848 KB
testcase_05 AC 125 ms
55,700 KB
testcase_06 AC 124 ms
55,348 KB
testcase_07 AC 122 ms
55,792 KB
testcase_08 AC 123 ms
55,364 KB
testcase_09 AC 120 ms
55,768 KB
testcase_10 AC 121 ms
55,348 KB
testcase_11 AC 123 ms
55,528 KB
testcase_12 AC 122 ms
55,372 KB
testcase_13 AC 121 ms
55,476 KB
testcase_14 AC 122 ms
55,956 KB
testcase_15 AC 124 ms
55,528 KB
testcase_16 AC 126 ms
55,976 KB
testcase_17 AC 123 ms
55,804 KB
testcase_18 AC 123 ms
55,920 KB
testcase_19 AC 121 ms
55,548 KB
testcase_20 AC 122 ms
55,784 KB
testcase_21 AC 127 ms
55,708 KB
testcase_22 AC 120 ms
55,596 KB
testcase_23 AC 122 ms
55,700 KB
testcase_24 AC 122 ms
55,816 KB
testcase_25 AC 124 ms
55,760 KB
testcase_26 AC 121 ms
55,852 KB
testcase_27 AC 121 ms
55,580 KB
testcase_28 AC 121 ms
55,872 KB
testcase_29 AC 122 ms
55,692 KB
testcase_30 AC 122 ms
55,596 KB
testcase_31 AC 124 ms
55,600 KB
testcase_32 AC 123 ms
55,592 KB
testcase_33 AC 122 ms
55,936 KB
testcase_34 AC 121 ms
55,908 KB
testcase_35 AC 124 ms
55,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] a) {
		Scanner s = new Scanner(System.in);
		String[][] t = {s.nextLine().split("\\."),s.nextLine().split("\\.")};
		int[] S = new int[2];for(int i=0;i<2;i++)for(int j=0;j<3;)S[i]=S[i]*1000+Integer.parseInt(t[i][j++]);
		System.out.println(S[0]<S[1]?"NO":"YES");
	}
}
0