結果

問題 No.446 ゆきこーだーの雨と雪 (1)
ユーザー matsuyoshi30matsuyoshi30
提出日時 2017-03-08 22:40:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 627 bytes
コンパイル時間 1,981 ms
コンパイル使用メモリ 73,000 KB
実行使用メモリ 58,376 KB
最終ジャッジ日時 2023-09-06 00:32:15
合計ジャッジ時間 5,291 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 139 ms
55,952 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 141 ms
56,148 KB
testcase_13 AC 140 ms
55,796 KB
testcase_14 AC 141 ms
56,108 KB
testcase_15 AC 140 ms
56,404 KB
testcase_16 AC 140 ms
56,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;

class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        String a = in.next();
        String b = in.next();

        boolean isA = false;
        boolean isB = false;

        for(int i=0; i<=12345; i++) {
            String str = String.valueOf(i);
            if(a.equals(str)) isA = true;
            if(b.equals(str)) isB = true;
        }

        if(isA && isB) System.out.println("OK");
        else System.out.println("NO");

        in.close();
    }
}
0