結果

問題 No.138 化石のバージョン
ユーザー 37zigen
提出日時 2016-03-11 18:13:55
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 622 bytes
コンパイル時間 2,305 ms
コンパイル使用メモリ 76,736 KB
実行使用メモリ 55,260 KB
最終ジャッジ日時 2024-09-25 00:51:50
合計ジャッジ時間 9,314 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 27 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Date;
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		long exec_time=new Date().getTime();
		Scanner sc=new Scanner(System.in);
		String[] str1=sc.nextLine().split("\\.");
		String[] str2=sc.nextLine().split("\\.");		
		String Str1="";
		String Str2="";
		for(int i=0;i<str1.length;i++){
			Str1=str1[0]+str1[1]+str1[2];
			Str2=str2[0]+str2[1]+str2[2];
		}
		int a=Integer.parseInt(Str1);
		int b=Integer.parseInt(Str2);
		if(a>=b){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
		System.err.println(new Date().getTime()-exec_time);
	}
}
0