結果

問題 No.138 化石のバージョン
ユーザー YOSHIYOSHI
提出日時 2021-03-01 22:36:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 84 ms / 5,000 ms
コード長 674 bytes
コンパイル時間 4,536 ms
コンパイル使用メモリ 87,376 KB
実行使用メモリ 51,328 KB
最終ジャッジ日時 2024-04-14 03:55:19
合計ジャッジ時間 8,576 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
50,868 KB
testcase_01 AC 80 ms
50,792 KB
testcase_02 AC 82 ms
50,736 KB
testcase_03 AC 84 ms
50,888 KB
testcase_04 AC 82 ms
50,864 KB
testcase_05 AC 81 ms
51,068 KB
testcase_06 AC 81 ms
50,792 KB
testcase_07 AC 84 ms
51,144 KB
testcase_08 AC 74 ms
51,092 KB
testcase_09 AC 71 ms
50,844 KB
testcase_10 AC 69 ms
51,100 KB
testcase_11 AC 69 ms
50,960 KB
testcase_12 AC 71 ms
51,176 KB
testcase_13 AC 69 ms
51,108 KB
testcase_14 AC 71 ms
51,120 KB
testcase_15 AC 70 ms
50,788 KB
testcase_16 AC 72 ms
51,012 KB
testcase_17 AC 71 ms
50,856 KB
testcase_18 AC 71 ms
51,132 KB
testcase_19 AC 70 ms
51,140 KB
testcase_20 AC 75 ms
51,292 KB
testcase_21 AC 72 ms
51,164 KB
testcase_22 AC 72 ms
51,000 KB
testcase_23 AC 70 ms
50,788 KB
testcase_24 AC 70 ms
51,172 KB
testcase_25 AC 68 ms
50,656 KB
testcase_26 AC 71 ms
51,132 KB
testcase_27 AC 70 ms
50,796 KB
testcase_28 AC 71 ms
50,640 KB
testcase_29 AC 70 ms
50,740 KB
testcase_30 AC 70 ms
50,948 KB
testcase_31 AC 70 ms
51,152 KB
testcase_32 AC 69 ms
51,328 KB
testcase_33 AC 71 ms
51,148 KB
testcase_34 AC 71 ms
51,144 KB
testcase_35 AC 70 ms
51,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.stream.Stream;

public class No00000138_Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		int[] arr1 = Stream.of(br.readLine().split("\\.")).mapToInt(Integer::parseInt).toArray();
		int[] arr2 = Stream.of(br.readLine().split("\\.")).mapToInt(Integer::parseInt).toArray();
		System.out.println(arr1[0] < arr2[0]
										|| (arr1[0] == arr2[0] && arr1[1] < arr2[1])
										|| (arr1[0] == arr2[0] && arr1[1] == arr2[1]  && arr1[2] < arr2[2]) ? "NO" : "YES");
	}
}
0