結果

問題 No.1250 汝は倍数なりや?
ユーザー SDESTINY_kprSDESTINY_kpr
提出日時 2020-10-15 23:55:58
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 1,062 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,820 KB
実行使用メモリ 28,432 KB
最終ジャッジ日時 2023-09-28 01:32:12
合計ジャッジ時間 3,463 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,948 KB
testcase_01 AC 14 ms
7,924 KB
testcase_02 AC 16 ms
7,864 KB
testcase_03 AC 15 ms
7,888 KB
testcase_04 AC 16 ms
7,928 KB
testcase_05 AC 16 ms
7,892 KB
testcase_06 AC 16 ms
7,840 KB
testcase_07 AC 15 ms
7,892 KB
testcase_08 AC 15 ms
7,812 KB
testcase_09 AC 14 ms
7,932 KB
testcase_10 AC 15 ms
7,852 KB
testcase_11 WA -
testcase_12 AC 15 ms
7,776 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 15 ms
7,880 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 15 ms
7,832 KB
testcase_20 WA -
testcase_21 AC 15 ms
7,944 KB
testcase_22 WA -
testcase_23 AC 14 ms
7,852 KB
testcase_24 AC 15 ms
7,800 KB
testcase_25 AC 15 ms
8,292 KB
testcase_26 WA -
testcase_27 AC 15 ms
7,928 KB
testcase_28 WA -
testcase_29 AC 15 ms
7,796 KB
testcase_30 WA -
testcase_31 AC 15 ms
7,776 KB
testcase_32 WA -
testcase_33 AC 86 ms
28,432 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 55 ms
18,988 KB
testcase_38 AC 58 ms
20,084 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 64 ms
21,864 KB
testcase_42 AC 41 ms
15,584 KB
testcase_43 AC 80 ms
27,700 KB
testcase_44 AC 42 ms
15,716 KB
testcase_45 WA -
testcase_46 AC 33 ms
13,668 KB
testcase_47 WA -
testcase_48 AC 15 ms
7,828 KB
testcase_49 AC 14 ms
7,816 KB
testcase_50 WA -
testcase_51 AC 15 ms
7,840 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import sys
# import math #sqrt,gcd,pi,factorial
# import decimal
# import queue # queue
# import bisect
# import heapq # priolity-queue
# from time import time
# from itertools import product,permutations,\
#     combinations,combinations_with_replacement
# 重複あり順列、順列、組み合わせ、重複あり組み合わせ
# import collections # deque
# from operator import itemgetter,mul
# from fractions import Fraction
# from functools import reduce

mod = int(1e9+7)
# mod = 998244353
INF = 1<<50

def readInt():
    return list(map(int,input().split()))

def Divisors(a):
    divisors = []
    for i in range(1,int(a**0.5)+1):
        if a%i==0:
            divisors.append(i)
            if i!=a//i:
                divisors.append(a//i)
    divisors.sort()
    return divisors

def main():
    n,h = readInt()
    a = readInt()
    ans = False
    for i in range(n):
        if a[i]%h==0:
            ans = True
            break
    if ans:
        print("YES")
    else:
        print("NO")
    return

if __name__=='__main__':
    main()
0