結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-01 22:17:59 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 584 bytes |
| コンパイル時間 | 4,696 ms |
| コンパイル使用メモリ | 80,636 KB |
| 実行使用メモリ | 51,236 KB |
| 最終ジャッジ日時 | 2024-10-03 01:04:26 |
| 合計ジャッジ時間 | 7,390 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 14 |
ソースコード
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");
}
}