結果

問題 No.138 化石のバージョン
ユーザー Democo
提出日時 2015-05-03 15:27:55
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 535 bytes
コンパイル時間 2,253 ms
コンパイル使用メモリ 74,616 KB
実行使用メモリ 41,788 KB
最終ジャッジ日時 2024-07-05 17:38:22
合計ジャッジ時間 7,330 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Yukico138 {
	public static void main(String[] args) {
		Scanner stdio = new Scanner(System.in);
		String s0 = stdio.next();
		String s1 = stdio.next();
		String[] ver0 = new String[3];
		String[] ver1 = new String[3];
		ver0 = s0.split("[.]");
		ver1 = s1.split("[.]");
		boolean yes = true;
		for(int i=0; i<3; i++) {
			if(Integer.parseInt(ver0[i]) < Integer.parseInt(ver1[i])) {
				yes = false;
				break;
			}
		}
		if(yes) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}
0