結果

問題 No.138 化石のバージョン
ユーザー TatsuDXTatsuDX
提出日時 2016-09-08 23:54:16
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 5,000 ms
コード長 475 bytes
コンパイル時間 4,773 ms
コンパイル使用メモリ 71,776 KB
実行使用メモリ 56,144 KB
最終ジャッジ日時 2023-08-28 13:46:08
合計ジャッジ時間 9,474 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,400 KB
testcase_01 AC 116 ms
56,032 KB
testcase_02 AC 116 ms
55,836 KB
testcase_03 AC 115 ms
55,672 KB
testcase_04 AC 116 ms
55,428 KB
testcase_05 AC 115 ms
55,728 KB
testcase_06 AC 119 ms
56,072 KB
testcase_07 AC 120 ms
55,816 KB
testcase_08 AC 118 ms
55,728 KB
testcase_09 AC 116 ms
55,680 KB
testcase_10 AC 116 ms
55,408 KB
testcase_11 AC 116 ms
55,932 KB
testcase_12 AC 119 ms
55,956 KB
testcase_13 AC 118 ms
55,700 KB
testcase_14 AC 116 ms
56,144 KB
testcase_15 AC 115 ms
55,716 KB
testcase_16 AC 114 ms
56,104 KB
testcase_17 AC 118 ms
56,036 KB
testcase_18 AC 119 ms
55,416 KB
testcase_19 AC 117 ms
55,952 KB
testcase_20 AC 116 ms
56,140 KB
testcase_21 AC 116 ms
55,360 KB
testcase_22 AC 116 ms
55,812 KB
testcase_23 AC 115 ms
55,792 KB
testcase_24 AC 118 ms
55,404 KB
testcase_25 AC 118 ms
55,828 KB
testcase_26 AC 119 ms
55,676 KB
testcase_27 AC 117 ms
55,792 KB
testcase_28 AC 116 ms
55,752 KB
testcase_29 AC 116 ms
55,836 KB
testcase_30 AC 117 ms
55,680 KB
testcase_31 AC 118 ms
55,832 KB
testcase_32 AC 118 ms
55,644 KB
testcase_33 AC 113 ms
55,632 KB
testcase_34 AC 114 ms
55,580 KB
testcase_35 AC 114 ms
55,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int n = 0, m = 0;
		String[] s = sc.next().split("\\.");
		for (int i = 0; i < 3; i++) {
			n *= 1000;
			n += Integer.parseInt(s[i]);
		}
		s = sc.next().split("\\.");
		for (int i = 0; i < 3; i++) {
			m *= 1000;
			m += Integer.parseInt(s[i]);
		}
		if (n < m) {
			System.out.println("NO");
		} else {
			System.out.println("YES");
		}
	}
}
0