結果

問題 No.138 化石のバージョン
ユーザー fal_rndfal_rnd
提出日時 2017-08-08 18:37:09
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 5,000 ms
コード長 465 bytes
コンパイル時間 3,001 ms
コンパイル使用メモリ 85,820 KB
実行使用メモリ 56,588 KB
最終ジャッジ日時 2023-08-28 13:54:04
合計ジャッジ時間 8,320 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,300 KB
testcase_01 AC 118 ms
56,108 KB
testcase_02 AC 119 ms
55,660 KB
testcase_03 AC 118 ms
55,832 KB
testcase_04 AC 118 ms
56,332 KB
testcase_05 AC 119 ms
55,820 KB
testcase_06 AC 119 ms
55,628 KB
testcase_07 AC 117 ms
55,508 KB
testcase_08 AC 117 ms
56,032 KB
testcase_09 AC 117 ms
55,996 KB
testcase_10 AC 117 ms
55,636 KB
testcase_11 AC 119 ms
55,968 KB
testcase_12 AC 118 ms
55,920 KB
testcase_13 AC 117 ms
55,820 KB
testcase_14 AC 119 ms
55,620 KB
testcase_15 AC 117 ms
55,888 KB
testcase_16 AC 120 ms
55,964 KB
testcase_17 AC 127 ms
56,192 KB
testcase_18 AC 120 ms
55,652 KB
testcase_19 AC 118 ms
55,544 KB
testcase_20 AC 126 ms
55,552 KB
testcase_21 AC 119 ms
55,864 KB
testcase_22 AC 118 ms
55,904 KB
testcase_23 AC 118 ms
56,024 KB
testcase_24 AC 117 ms
55,736 KB
testcase_25 AC 118 ms
55,728 KB
testcase_26 AC 118 ms
56,152 KB
testcase_27 AC 118 ms
55,648 KB
testcase_28 AC 117 ms
56,068 KB
testcase_29 AC 118 ms
56,196 KB
testcase_30 AC 118 ms
55,744 KB
testcase_31 AC 117 ms
55,816 KB
testcase_32 AC 117 ms
56,008 KB
testcase_33 AC 117 ms
56,064 KB
testcase_34 AC 118 ms
55,864 KB
testcase_35 AC 118 ms
56,588 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class M{
	public static void main(String[]$){
Scanner s=new Scanner(System.in);
		int[]a=Arrays.stream(s.next().split("\\.")).mapToInt(Integer::parseInt).toArray();
		int[]b=Arrays.stream(s.next().split("\\.")).mapToInt(Integer::parseInt).toArray();
		for(int i=0;i<3;++i) {
			if(a[i]<b[i]) {
				System.out.println("NO");
				return;
			}
			if(a[i]>b[i]) {
				System.out.println("YES");
				return;
			}
		}
		System.out.println("YES");
	}
}
0