結果

問題 No.138 化石のバージョン
ユーザー YOSHI
提出日時 2021-03-01 22:12:35
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 583 bytes
コンパイル時間 5,540 ms
コンパイル使用メモリ 80,848 KB
実行使用メモリ 51,292 KB
最終ジャッジ日時 2024-10-03 01:04:17
合計ジャッジ時間 7,592 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 14 WA * 19
権限があれば一括ダウンロードができます

ソースコード

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