結果

問題 No.138 化石のバージョン
ユーザー YatsukuYatsuku
提出日時 2015-12-13 01:24:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 2,076 ms
コンパイル使用メモリ 72,132 KB
実行使用メモリ 57,708 KB
最終ジャッジ日時 2023-10-13 14:11:55
合計ジャッジ時間 8,468 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,264 KB
testcase_01 AC 119 ms
55,516 KB
testcase_02 AC 119 ms
55,804 KB
testcase_03 AC 116 ms
55,840 KB
testcase_04 AC 115 ms
55,484 KB
testcase_05 AC 117 ms
55,460 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 117 ms
55,868 KB
testcase_17 AC 119 ms
55,644 KB
testcase_18 AC 118 ms
55,828 KB
testcase_19 AC 116 ms
56,412 KB
testcase_20 AC 117 ms
55,568 KB
testcase_21 AC 122 ms
55,740 KB
testcase_22 AC 122 ms
55,464 KB
testcase_23 AC 118 ms
55,884 KB
testcase_24 AC 117 ms
55,708 KB
testcase_25 AC 119 ms
55,716 KB
testcase_26 WA -
testcase_27 AC 120 ms
55,908 KB
testcase_28 AC 120 ms
55,476 KB
testcase_29 AC 122 ms
55,844 KB
testcase_30 AC 118 ms
53,752 KB
testcase_31 AC 118 ms
55,156 KB
testcase_32 AC 120 ms
55,688 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class No_138 {
	public static void main(String args[]) {
		Scanner stdIn = new Scanner(System.in);		

		String[] old_ver = stdIn.next().split("\\.");
		String[] ver = stdIn.next().split("\\.");

		for (int i = 0; i < 3; i++) {
			if (Integer.parseInt(ver[i]) > Integer.parseInt(old_ver[i])) {
				System.out.println("NO");	
				System.exit(0);
			}
		}
		System.out.println("YES");
	}
}
0