結果

問題 No.138 化石のバージョン
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 13:41:55
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 361 bytes
コンパイル時間 1,877 ms
コンパイル使用メモリ 71,012 KB
実行使用メモリ 58,376 KB
最終ジャッジ日時 2023-10-11 12:34:34
合計ジャッジ時間 7,953 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 114 ms
55,684 KB
testcase_04 AC 114 ms
55,288 KB
testcase_05 AC 115 ms
56,124 KB
testcase_06 WA -
testcase_07 AC 116 ms
56,228 KB
testcase_08 AC 116 ms
56,016 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 115 ms
56,352 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 117 ms
55,684 KB
testcase_21 WA -
testcase_22 AC 117 ms
55,732 KB
testcase_23 WA -
testcase_24 AC 117 ms
55,872 KB
testcase_25 AC 116 ms
56,192 KB
testcase_26 AC 117 ms
55,972 KB
testcase_27 AC 116 ms
55,608 KB
testcase_28 AC 115 ms
55,420 KB
testcase_29 AC 117 ms
55,836 KB
testcase_30 AC 117 ms
55,920 KB
testcase_31 AC 119 ms
55,816 KB
testcase_32 AC 116 ms
55,532 KB
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		
		String[] a = sc.next().split("\\.",0);
		String[] b = sc.next().split("\\.",0);
		String ans = "NO";
		
		for (int i=0; i<3; i++) {
			if (a[i].compareTo(b[i]) == 1) {
				ans = "YES"; break;
			}
		}
		System.out.println(ans);
		
	}
}
0