結果

問題 No.138 化石のバージョン
ユーザー YOSHIYOSHI
提出日時 2021-03-01 22:17:59
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 584 bytes
コンパイル時間 4,413 ms
コンパイル使用メモリ 80,456 KB
実行使用メモリ 51,284 KB
最終ジャッジ日時 2024-04-14 03:54:47
合計ジャッジ時間 7,429 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
50,848 KB
testcase_01 AC 67 ms
51,000 KB
testcase_02 AC 65 ms
51,064 KB
testcase_03 AC 65 ms
51,032 KB
testcase_04 AC 66 ms
51,208 KB
testcase_05 AC 65 ms
51,192 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 66 ms
51,076 KB
testcase_17 AC 66 ms
51,040 KB
testcase_18 AC 65 ms
51,020 KB
testcase_19 AC 65 ms
50,804 KB
testcase_20 AC 68 ms
51,100 KB
testcase_21 AC 65 ms
50,996 KB
testcase_22 AC 66 ms
51,144 KB
testcase_23 AC 66 ms
50,888 KB
testcase_24 AC 76 ms
50,916 KB
testcase_25 AC 66 ms
51,232 KB
testcase_26 WA -
testcase_27 AC 66 ms
51,132 KB
testcase_28 AC 65 ms
50,976 KB
testcase_29 AC 65 ms
51,076 KB
testcase_30 AC 65 ms
51,060 KB
testcase_31 AC 67 ms
50,888 KB
testcase_32 AC 67 ms
51,104 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

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[1] < arr2[1] || arr1[2] < arr2[2] ? "NO" : "YES");
	}
}
0