結果

問題 No.138 化石のバージョン
ユーザー atkrymatkrym
提出日時 2016-10-25 01:04:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 491 bytes
コンパイル時間 2,086 ms
コンパイル使用メモリ 74,656 KB
実行使用メモリ 41,596 KB
最終ジャッジ日時 2024-05-03 05:55:19
合計ジャッジ時間 7,066 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
41,004 KB
testcase_01 AC 97 ms
41,284 KB
testcase_02 WA -
testcase_03 AC 111 ms
40,056 KB
testcase_04 AC 112 ms
40,164 KB
testcase_05 AC 114 ms
40,764 KB
testcase_06 AC 112 ms
40,280 KB
testcase_07 AC 119 ms
41,392 KB
testcase_08 WA -
testcase_09 AC 113 ms
41,192 KB
testcase_10 AC 111 ms
41,124 KB
testcase_11 AC 109 ms
41,596 KB
testcase_12 AC 110 ms
40,128 KB
testcase_13 WA -
testcase_14 AC 112 ms
39,708 KB
testcase_15 WA -
testcase_16 AC 96 ms
41,432 KB
testcase_17 AC 108 ms
41,100 KB
testcase_18 AC 97 ms
41,316 KB
testcase_19 AC 99 ms
40,776 KB
testcase_20 AC 100 ms
41,128 KB
testcase_21 AC 115 ms
40,628 KB
testcase_22 AC 96 ms
40,988 KB
testcase_23 AC 102 ms
39,692 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 118 ms
41,316 KB
testcase_27 AC 118 ms
40,896 KB
testcase_28 AC 119 ms
41,340 KB
testcase_29 AC 112 ms
39,980 KB
testcase_30 AC 115 ms
40,964 KB
testcase_31 AC 99 ms
41,156 KB
testcase_32 AC 111 ms
40,980 KB
testcase_33 AC 101 ms
41,552 KB
testcase_34 AC 106 ms
41,184 KB
testcase_35 AC 97 ms
41,108 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    private static Scanner sc = new Scanner(System.in);
    public static void main(String[] args) throws Exception {
        String s = sc.next();
        String c = sc.next();
        
        int is = Integer.valueOf(s.replaceAll("\\.", ""));
        int ic = Integer.valueOf(c.replaceAll("\\.", ""));
        
        if (ic <= is) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0