結果
| 問題 |
No.138 化石のバージョン
|
| コンテスト | |
| ユーザー |
takeya_okino
|
| 提出日時 | 2017-06-22 22:59:21 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 515 bytes |
| コンパイル時間 | 2,016 ms |
| コンパイル使用メモリ | 74,312 KB |
| 実行使用メモリ | 54,660 KB |
| 最終ジャッジ日時 | 2024-10-02 12:20:52 |
| 合計ジャッジ時間 | 7,883 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 33 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
String s2 = sc.next();
String[] s1d = s1.split(".");
String[] s2d = s2.split(".");
String ans = "NO";
for(int i = 0; i < 3; i++) {
int a = Integer.parseInt(s1d[i]);
int b = Integer.parseInt(s2d[i]);
if(a > b) {
ans = "YES";
break;
}
if(i == 2) ans = "YES";
}
System.out.println(ans);
}
}
takeya_okino