結果

問題 No.138 化石のバージョン
ユーザー _k_a_n_i__k_a_n_i_
提出日時 2015-02-16 19:43:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 738 bytes
コンパイル時間 2,085 ms
コンパイル使用メモリ 71,520 KB
実行使用メモリ 55,980 KB
最終ジャッジ日時 2023-09-06 01:42:52
合計ジャッジ時間 8,743 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,800 KB
testcase_01 AC 118 ms
55,508 KB
testcase_02 WA -
testcase_03 AC 120 ms
55,692 KB
testcase_04 AC 120 ms
55,572 KB
testcase_05 AC 121 ms
55,644 KB
testcase_06 AC 122 ms
55,564 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 120 ms
55,424 KB
testcase_10 AC 121 ms
55,644 KB
testcase_11 AC 120 ms
55,708 KB
testcase_12 AC 123 ms
55,384 KB
testcase_13 AC 120 ms
55,716 KB
testcase_14 AC 120 ms
55,772 KB
testcase_15 AC 119 ms
55,608 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 122 ms
54,068 KB
testcase_20 AC 122 ms
55,368 KB
testcase_21 WA -
testcase_22 AC 121 ms
55,588 KB
testcase_23 AC 125 ms
53,820 KB
testcase_24 AC 120 ms
55,728 KB
testcase_25 AC 120 ms
55,564 KB
testcase_26 AC 121 ms
55,568 KB
testcase_27 AC 122 ms
55,980 KB
testcase_28 AC 121 ms
54,376 KB
testcase_29 AC 121 ms
53,328 KB
testcase_30 AC 121 ms
55,568 KB
testcase_31 AC 122 ms
55,932 KB
testcase_32 AC 121 ms
55,708 KB
testcase_33 AC 121 ms
55,716 KB
testcase_34 AC 120 ms
55,692 KB
testcase_35 AC 120 ms
55,548 KB
権限があれば一括ダウンロードができます

ソースコード

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