結果

問題 No.138 化石のバージョン
ユーザー _k_a_n_i_
提出日時 2015-02-16 19:43:20
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 738 bytes
コンパイル時間 2,035 ms
コンパイル使用メモリ 74,312 KB
実行使用メモリ 47,880 KB
最終ジャッジ日時 2024-06-23 20:46:01
合計ジャッジ時間 7,603 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main
{
    private final static Main main = new Main();

    public static void main(String[] args)
    {
        long l = System.currentTimeMillis();
        main.answer();
        //System.err.println("経過時間:"+(System.currentTimeMillis() - l));
    }

    private void answer()
    {
        Scanner sc = new Scanner(System.in);
        String[] as = sc.nextLine().split("\\.");
        int a = Integer.valueOf(as[0])*100 + Integer.valueOf(as[1])*10 + Integer.valueOf(as[2]);
        String[] bs = sc.nextLine().split("\\.");
        int b = Integer.valueOf(bs[0])*100 + Integer.valueOf(bs[1])*10 + Integer.valueOf(bs[2]);
        sc.close();
        System.out.println(a>b?"YES":"NO");
    }
}
0