結果

問題 No.1250 汝は倍数なりや?
ユーザー RuteRute
提出日時 2020-10-09 21:29:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 287 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 10,596 KB
実行使用メモリ 28,396 KB
最終ジャッジ日時 2023-09-27 14:44:40
合計ジャッジ時間 3,488 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,872 KB
testcase_01 AC 13 ms
7,796 KB
testcase_02 AC 13 ms
7,800 KB
testcase_03 AC 12 ms
7,824 KB
testcase_04 AC 13 ms
7,744 KB
testcase_05 AC 13 ms
7,800 KB
testcase_06 AC 13 ms
7,748 KB
testcase_07 AC 14 ms
7,808 KB
testcase_08 AC 14 ms
7,800 KB
testcase_09 AC 13 ms
7,876 KB
testcase_10 AC 13 ms
7,872 KB
testcase_11 WA -
testcase_12 AC 12 ms
7,808 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 13 ms
7,748 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 13 ms
7,804 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 13 ms
7,804 KB
testcase_24 AC 13 ms
7,800 KB
testcase_25 AC 13 ms
7,804 KB
testcase_26 WA -
testcase_27 AC 13 ms
7,828 KB
testcase_28 WA -
testcase_29 AC 12 ms
7,868 KB
testcase_30 WA -
testcase_31 AC 13 ms
7,740 KB
testcase_32 WA -
testcase_33 AC 107 ms
28,396 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 63 ms
18,996 KB
testcase_38 AC 67 ms
20,068 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 71 ms
21,704 KB
testcase_42 AC 46 ms
15,544 KB
testcase_43 AC 96 ms
26,292 KB
testcase_44 AC 49 ms
15,616 KB
testcase_45 WA -
testcase_46 AC 36 ms
13,472 KB
testcase_47 WA -
testcase_48 AC 12 ms
7,804 KB
testcase_49 AC 14 ms
7,940 KB
testcase_50 WA -
testcase_51 AC 13 ms
7,856 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,H = map(int,input().split())
A = list(map(int,input().split()))
f1 = 0
f2 = 0
for i in range(N):
    if A[i]%H == 0:
        f1 += 1
    if A[i] == 0:
        f2 += 1
        break
if f1 >= 1 and f2 == 0:
    print("YES")
elif f1 == 0 and f2 == 0:
    print("NO")
else:
    print("NO")
0