結果

問題 No.138 化石のバージョン
ユーザー ohagi_1182
提出日時 2017-10-20 14:58:33
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 439 bytes
コンパイル時間 2,802 ms
コンパイル使用メモリ 74,608 KB
実行使用メモリ 54,188 KB
最終ジャッジ日時 2024-11-21 10:44:53
合計ジャッジ時間 8,200 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a0 = sc.next();
		String a1 = sc.next();
		a0 = a0.replace(".", "");
		a1 = a1.replace(".", "");
		int version = Integer.valueOf(a0);
		int isVersion = Integer.valueOf(a1);
		String ans = "";
		if(version >= isVersion) {
			ans = "YES";
		} else {
			ans = "NO";
		}
		System.out.println(ans);
 	}
}

0