結果

問題 No.138 化石のバージョン
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-20 14:58:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 2,612 ms
コンパイル使用メモリ 74,092 KB
実行使用メモリ 54,064 KB
最終ジャッジ日時 2024-05-01 07:54:23
合計ジャッジ時間 7,829 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 115 ms
41,148 KB
testcase_01 AC 111 ms
41,316 KB
testcase_02 WA -
testcase_03 AC 114 ms
41,708 KB
testcase_04 AC 112 ms
41,660 KB
testcase_05 AC 103 ms
41,572 KB
testcase_06 AC 94 ms
41,436 KB
testcase_07 AC 114 ms
40,972 KB
testcase_08 WA -
testcase_09 AC 115 ms
41,580 KB
testcase_10 AC 117 ms
41,520 KB
testcase_11 AC 113 ms
41,232 KB
testcase_12 AC 109 ms
41,048 KB
testcase_13 WA -
testcase_14 AC 110 ms
40,304 KB
testcase_15 WA -
testcase_16 AC 109 ms
40,952 KB
testcase_17 AC 112 ms
40,088 KB
testcase_18 AC 123 ms
41,136 KB
testcase_19 AC 118 ms
41,420 KB
testcase_20 AC 117 ms
41,172 KB
testcase_21 AC 115 ms
41,620 KB
testcase_22 AC 116 ms
41,092 KB
testcase_23 AC 122 ms
41,188 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 117 ms
41,284 KB
testcase_27 AC 118 ms
41,244 KB
testcase_28 AC 118 ms
40,920 KB
testcase_29 AC 120 ms
41,256 KB
testcase_30 AC 106 ms
40,916 KB
testcase_31 AC 115 ms
41,408 KB
testcase_32 AC 110 ms
41,932 KB
testcase_33 AC 111 ms
41,676 KB
testcase_34 AC 101 ms
41,104 KB
testcase_35 AC 104 ms
40,080 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a0 = sc.next();
		String a1 = sc.next();
		a0 = a0.replace(".", "");
		a1 = a1.replace(".", "");
		int version = Integer.valueOf(a0);
		int isVersion = Integer.valueOf(a1);
		String ans = "";
		if(version >= isVersion) {
			ans = "YES";
		} else {
			ans = "NO";
		}
		System.out.println(ans);
 	}
}

0