結果

問題 No.138 化石のバージョン
ユーザー YukimotoPGYukimotoPG
提出日時 2019-02-14 13:45:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 2,052 ms
コンパイル使用メモリ 72,448 KB
実行使用メモリ 56,632 KB
最終ジャッジ日時 2023-10-11 12:34:53
合計ジャッジ時間 7,537 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 116 ms
55,676 KB
testcase_04 AC 116 ms
55,804 KB
testcase_05 WA -
testcase_06 AC 117 ms
55,688 KB
testcase_07 AC 118 ms
56,632 KB
testcase_08 AC 115 ms
55,752 KB
testcase_09 AC 114 ms
56,376 KB
testcase_10 AC 115 ms
56,196 KB
testcase_11 AC 115 ms
55,700 KB
testcase_12 AC 114 ms
55,904 KB
testcase_13 AC 115 ms
56,312 KB
testcase_14 WA -
testcase_15 AC 115 ms
56,028 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 AC 116 ms
55,944 KB
testcase_21 WA -
testcase_22 AC 116 ms
55,880 KB
testcase_23 WA -
testcase_24 AC 116 ms
55,824 KB
testcase_25 AC 116 ms
56,148 KB
testcase_26 AC 117 ms
56,200 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 116 ms
55,988 KB
testcase_34 AC 115 ms
55,908 KB
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 (b[i].compareTo(a[i]) < 0) {
				ans = "YES"; break;
			}
		}
		System.out.println(ans);
		
	}
}
0