結果

問題 No.138 化石のバージョン
ユーザー h_tyokinuhatah_tyokinuhata
提出日時 2016-01-26 21:16:22
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 645 bytes
コンパイル時間 4,048 ms
コンパイル使用メモリ 87,796 KB
実行使用メモリ 57,816 KB
最終ジャッジ日時 2023-10-21 16:22:33
合計ジャッジ時間 9,653 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,392 KB
testcase_01 AC 132 ms
57,372 KB
testcase_02 WA -
testcase_03 AC 130 ms
57,476 KB
testcase_04 AC 128 ms
57,516 KB
testcase_05 AC 128 ms
57,440 KB
testcase_06 AC 119 ms
56,176 KB
testcase_07 AC 131 ms
57,396 KB
testcase_08 WA -
testcase_09 AC 129 ms
57,448 KB
testcase_10 AC 132 ms
57,428 KB
testcase_11 AC 133 ms
57,488 KB
testcase_12 AC 132 ms
57,464 KB
testcase_13 WA -
testcase_14 AC 130 ms
57,160 KB
testcase_15 WA -
testcase_16 AC 132 ms
57,624 KB
testcase_17 AC 132 ms
57,396 KB
testcase_18 AC 131 ms
57,452 KB
testcase_19 AC 130 ms
57,404 KB
testcase_20 AC 130 ms
57,408 KB
testcase_21 AC 132 ms
57,384 KB
testcase_22 AC 131 ms
57,456 KB
testcase_23 AC 131 ms
57,476 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 129 ms
57,504 KB
testcase_27 AC 132 ms
57,240 KB
testcase_28 AC 132 ms
57,392 KB
testcase_29 AC 130 ms
57,424 KB
testcase_30 AC 128 ms
57,560 KB
testcase_31 AC 130 ms
57,452 KB
testcase_32 AC 133 ms
57,432 KB
testcase_33 AC 129 ms
57,420 KB
testcase_34 AC 131 ms
57,432 KB
testcase_35 AC 129 ms
57,400 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

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

		String verA = sc.next();
		String verB = sc.next();
		
		String[] arrayVerA = verA.split("\\.", 0);
		String[] arrayVerB = verB.split("\\.", 0);
		
		String plainVerA = "", plainVerB = "";
		
		for(int i = 0; i < arrayVerA.length; i++) {
			plainVerA+=arrayVerA[i];
			plainVerB+=arrayVerB[i];
		}
		
		int intPlainVerA = Integer.parseInt(plainVerA);
		int intPlainVerB = Integer.parseInt(plainVerB);
			
		if(intPlainVerA >= intPlainVerB) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}
0