結果

問題 No.138 化石のバージョン
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-09 18:46:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 5,000 ms
コード長 485 bytes
コンパイル時間 2,159 ms
コンパイル使用メモリ 74,812 KB
実行使用メモリ 41,532 KB
最終ジャッジ日時 2024-04-16 20:30:13
合計ジャッジ時間 8,021 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
41,320 KB
testcase_01 AC 128 ms
41,360 KB
testcase_02 AC 129 ms
41,120 KB
testcase_03 AC 126 ms
41,228 KB
testcase_04 AC 127 ms
41,260 KB
testcase_05 AC 126 ms
41,360 KB
testcase_06 AC 126 ms
41,236 KB
testcase_07 AC 128 ms
41,260 KB
testcase_08 AC 126 ms
41,196 KB
testcase_09 AC 111 ms
40,248 KB
testcase_10 AC 125 ms
41,368 KB
testcase_11 AC 125 ms
41,376 KB
testcase_12 AC 109 ms
40,224 KB
testcase_13 AC 124 ms
41,072 KB
testcase_14 AC 126 ms
41,148 KB
testcase_15 AC 113 ms
40,268 KB
testcase_16 AC 126 ms
41,136 KB
testcase_17 AC 125 ms
41,144 KB
testcase_18 AC 110 ms
39,864 KB
testcase_19 AC 111 ms
40,264 KB
testcase_20 AC 124 ms
41,020 KB
testcase_21 AC 125 ms
41,036 KB
testcase_22 AC 124 ms
41,036 KB
testcase_23 AC 128 ms
41,532 KB
testcase_24 AC 130 ms
41,416 KB
testcase_25 AC 124 ms
41,108 KB
testcase_26 AC 125 ms
41,232 KB
testcase_27 AC 126 ms
41,284 KB
testcase_28 AC 124 ms
40,996 KB
testcase_29 AC 125 ms
41,244 KB
testcase_30 AC 128 ms
41,328 KB
testcase_31 AC 126 ms
41,248 KB
testcase_32 AC 114 ms
40,064 KB
testcase_33 AC 125 ms
41,252 KB
testcase_34 AC 127 ms
41,280 KB
testcase_35 AC 112 ms
40,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	static Scanner sc = new Scanner(System.in);
	public static void main(String[] args) {
		String[] a = sc.next().split("\\.");
		String[] b = sc.next().split("\\.");
		int[] x = new int[3];
		int[] y = new int[3];
		for (int i=0; i<3; i++) {
			x[i] = Integer.parseInt(a[i]);
			y[i] = Integer.parseInt(b[i]);
		}

		long c = x[2] + x[1]*1000 + x[0]*1000000;
		long d = y[2] + y[1]*1000 + y[0]*1000000;
		System.out.println(c<d?"NO":"YES");
	}
}
0