結果

問題 No.138 化石のバージョン
ユーザー カニ戯(ry
提出日時 2015-02-24 16:01:37
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 347 bytes
コンパイル時間 2,059 ms
コンパイル使用メモリ 74,556 KB
実行使用メモリ 41,748 KB
最終ジャッジ日時 2024-06-23 22:46:17
合計ジャッジ時間 7,753 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 32 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] a) {
		Scanner s = new Scanner(System.in);
		String[][] t = {s.nextLine().split("\\."),s.nextLine().split("\\.")};
		int[] S = new int[2];for(int i=0;i<2;i++)for(int j=0;j<3;)S[i]=S[i]*100+Integer.parseInt(t[i][j++]);
		System.out.println(S[0]<S[1]?"NO":"YES");
	}
}
0