結果

問題 No.1250 汝は倍数なりや?
ユーザー Nitish SongaraNitish Songara
提出日時 2020-10-10 01:09:44
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 521 bytes
コンパイル時間 2,479 ms
コンパイル使用メモリ 71,600 KB
実行使用メモリ 65,140 KB
最終ジャッジ日時 2023-09-27 20:37:49
合計ジャッジ時間 19,456 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
56,240 KB
testcase_01 AC 126 ms
56,256 KB
testcase_02 AC 126 ms
55,804 KB
testcase_03 AC 125 ms
55,652 KB
testcase_04 AC 127 ms
55,848 KB
testcase_05 AC 125 ms
55,812 KB
testcase_06 AC 126 ms
56,056 KB
testcase_07 AC 127 ms
56,108 KB
testcase_08 AC 126 ms
56,156 KB
testcase_09 AC 126 ms
56,124 KB
testcase_10 AC 126 ms
55,796 KB
testcase_11 WA -
testcase_12 AC 126 ms
56,004 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 127 ms
56,328 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 127 ms
56,024 KB
testcase_20 WA -
testcase_21 AC 126 ms
55,912 KB
testcase_22 WA -
testcase_23 AC 180 ms
56,096 KB
testcase_24 AC 175 ms
54,208 KB
testcase_25 AC 187 ms
56,056 KB
testcase_26 WA -
testcase_27 AC 187 ms
56,296 KB
testcase_28 WA -
testcase_29 AC 154 ms
56,092 KB
testcase_30 WA -
testcase_31 AC 141 ms
55,836 KB
testcase_32 WA -
testcase_33 AC 768 ms
64,824 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 576 ms
60,464 KB
testcase_38 AC 607 ms
61,244 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 635 ms
62,140 KB
testcase_42 AC 538 ms
60,688 KB
testcase_43 AC 722 ms
64,576 KB
testcase_44 AC 546 ms
61,052 KB
testcase_45 WA -
testcase_46 AC 459 ms
60,376 KB
testcase_47 WA -
testcase_48 AC 126 ms
56,028 KB
testcase_49 AC 125 ms
56,104 KB
testcase_50 WA -
testcase_51 AC 126 ms
55,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class Solution{
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        boolean done = false;
        for(int i=0;i<n;i++){
            int cur = sc.nextInt();
            if(cur%k == 0){
                done = true;
                break;
            }
        }
        sc.close();
        if(done)
            System.out.println("YES");
        else
            System.out.println("NO");
    }
}
0