結果

問題 No.138 化石のバージョン
コンテスト
ユーザー _k_a_n_i_
提出日時 2015-02-16 19:43:20
言語 Java
(openjdk 25.0.2)
コンパイル:
javac -encoding UTF8 _filename_
実行:
java -ea -Xmx700m -Xss256M -DONLINE_JUDGE=true _class_
結果
WA  
実行時間 -
コード長 738 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,795 ms
コンパイル使用メモリ 82,824 KB
実行使用メモリ 46,836 KB
最終ジャッジ日時 2026-03-09 04:26:23
合計ジャッジ時間 4,559 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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