結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,700 KB
testcase_01 AC 121 ms
55,452 KB
testcase_02 AC 121 ms
55,708 KB
testcase_03 WA -
testcase_04 AC 123 ms
55,940 KB
testcase_05 AC 122 ms
55,604 KB
testcase_06 AC 120 ms
55,916 KB
testcase_07 AC 121 ms
55,816 KB
testcase_08 AC 119 ms
55,668 KB
testcase_09 AC 120 ms
55,408 KB
testcase_10 AC 121 ms
55,916 KB
testcase_11 AC 121 ms
55,712 KB
testcase_12 AC 120 ms
55,844 KB
testcase_13 AC 120 ms
55,884 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 119 ms
55,836 KB
testcase_20 AC 119 ms
55,704 KB
testcase_21 WA -
testcase_22 AC 118 ms
55,944 KB
testcase_23 AC 118 ms
55,740 KB
testcase_24 AC 122 ms
55,380 KB
testcase_25 AC 122 ms
57,740 KB
testcase_26 AC 119 ms
55,904 KB
testcase_27 AC 120 ms
55,552 KB
testcase_28 AC 121 ms
55,684 KB
testcase_29 AC 120 ms
55,464 KB
testcase_30 AC 120 ms
55,948 KB
testcase_31 AC 123 ms
55,692 KB
testcase_32 AC 124 ms
55,692 KB
testcase_33 AC 121 ms
55,640 KB
testcase_34 AC 122 ms
55,668 KB
testcase_35 AC 122 ms
55,852 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 = "YES";
		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