結果

問題 No.138 化石のバージョン
ユーザー YOSHIYOSHI
提出日時 2021-03-01 22:12:35
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 583 bytes
コンパイル時間 4,269 ms
コンパイル使用メモリ 80,140 KB
実行使用メモリ 53,180 KB
最終ジャッジ日時 2024-04-14 03:54:38
合計ジャッジ時間 8,335 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 68 ms
51,180 KB
testcase_07 AC 70 ms
51,100 KB
testcase_08 AC 69 ms
51,156 KB
testcase_09 AC 69 ms
51,160 KB
testcase_10 AC 72 ms
51,068 KB
testcase_11 AC 72 ms
51,180 KB
testcase_12 AC 69 ms
51,088 KB
testcase_13 AC 72 ms
50,952 KB
testcase_14 AC 68 ms
50,792 KB
testcase_15 AC 68 ms
51,124 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 83 ms
50,984 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 85 ms
51,352 KB
testcase_34 AC 84 ms
51,168 KB
testcase_35 AC 82 ms
50,952 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[1] < arr2[1] || arr1[2] < arr2[2] ? "YES" : "NO");
	}
}
0