結果

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

ソースコード

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