結果

問題 No.138 化石のバージョン
ユーザー h_tyokinuhatah_tyokinuhata
提出日時 2016-01-26 21:19:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 645 bytes
コンパイル時間 2,466 ms
コンパイル使用メモリ 77,880 KB
実行使用メモリ 57,772 KB
最終ジャッジ日時 2023-10-21 16:22:46
合計ジャッジ時間 8,906 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,408 KB
testcase_01 AC 123 ms
57,352 KB
testcase_02 WA -
testcase_03 AC 118 ms
57,368 KB
testcase_04 AC 127 ms
57,280 KB
testcase_05 AC 122 ms
57,396 KB
testcase_06 AC 121 ms
57,392 KB
testcase_07 AC 114 ms
57,132 KB
testcase_08 WA -
testcase_09 AC 118 ms
55,208 KB
testcase_10 AC 120 ms
55,380 KB
testcase_11 AC 122 ms
57,284 KB
testcase_12 AC 121 ms
57,332 KB
testcase_13 WA -
testcase_14 AC 122 ms
57,308 KB
testcase_15 WA -
testcase_16 AC 120 ms
57,236 KB
testcase_17 AC 121 ms
57,328 KB
testcase_18 AC 128 ms
56,972 KB
testcase_19 AC 102 ms
55,620 KB
testcase_20 AC 116 ms
56,896 KB
testcase_21 AC 117 ms
57,232 KB
testcase_22 AC 120 ms
57,404 KB
testcase_23 AC 117 ms
57,060 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 118 ms
57,380 KB
testcase_27 AC 118 ms
57,424 KB
testcase_28 AC 122 ms
57,472 KB
testcase_29 AC 119 ms
57,308 KB
testcase_30 AC 120 ms
57,192 KB
testcase_31 AC 119 ms
57,408 KB
testcase_32 AC 118 ms
57,356 KB
testcase_33 AC 117 ms
57,196 KB
testcase_34 AC 116 ms
57,220 KB
testcase_35 AC 121 ms
57,560 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