結果

問題 No.138 化石のバージョン
ユーザー 練習生練習生
提出日時 2015-08-19 12:09:31
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 454 bytes
コンパイル時間 4,858 ms
コンパイル使用メモリ 73,160 KB
実行使用メモリ 57,924 KB
最終ジャッジ日時 2023-09-25 13:15:41
合計ジャッジ時間 9,997 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,468 KB
testcase_01 AC 119 ms
56,084 KB
testcase_02 WA -
testcase_03 AC 117 ms
55,796 KB
testcase_04 AC 118 ms
55,716 KB
testcase_05 AC 119 ms
55,720 KB
testcase_06 AC 117 ms
55,872 KB
testcase_07 AC 118 ms
55,988 KB
testcase_08 AC 118 ms
56,032 KB
testcase_09 AC 118 ms
55,780 KB
testcase_10 AC 116 ms
55,700 KB
testcase_11 AC 119 ms
55,824 KB
testcase_12 AC 117 ms
56,212 KB
testcase_13 AC 116 ms
55,988 KB
testcase_14 AC 115 ms
55,692 KB
testcase_15 AC 116 ms
55,932 KB
testcase_16 AC 118 ms
55,888 KB
testcase_17 AC 117 ms
56,104 KB
testcase_18 AC 118 ms
56,000 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 116 ms
55,636 KB
testcase_22 AC 118 ms
55,880 KB
testcase_23 WA -
testcase_24 AC 118 ms
56,284 KB
testcase_25 AC 118 ms
55,480 KB
testcase_26 AC 119 ms
55,780 KB
testcase_27 AC 121 ms
55,868 KB
testcase_28 AC 120 ms
55,944 KB
testcase_29 AC 120 ms
55,980 KB
testcase_30 AC 118 ms
55,828 KB
testcase_31 AC 117 ms
55,800 KB
testcase_32 AC 118 ms
55,840 KB
testcase_33 AC 117 ms
56,032 KB
testcase_34 AC 116 ms
55,808 KB
testcase_35 AC 117 ms
55,732 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No138 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String[] kasekiVer = sc.next().split("\\.");
		String[] hanteiVer = sc.next().split("\\.");
		sc.close();
		String kaseki = "NO";
		for(int i = 2; i >= 0; i--){
			if(Integer.valueOf(kasekiVer[i]) >= Integer.valueOf(hanteiVer[i])){
				kaseki = "YES";
			}else{
				kaseki = "NO";
			}
		}
		System.out.println(kaseki);
	}
}
0