結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,900 KB
testcase_01 AC 14 ms
7,824 KB
testcase_02 AC 14 ms
7,956 KB
testcase_03 AC 14 ms
7,816 KB
testcase_04 AC 14 ms
7,980 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 14 ms
7,740 KB
testcase_07 AC 15 ms
7,740 KB
testcase_08 AC 14 ms
7,920 KB
testcase_09 AC 16 ms
7,928 KB
testcase_10 AC 13 ms
7,812 KB
testcase_11 AC 13 ms
7,784 KB
testcase_12 AC 13 ms
7,772 KB
testcase_13 WA -
testcase_14 AC 14 ms
7,820 KB
testcase_15 WA -
testcase_16 AC 14 ms
7,740 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 13 ms
7,780 KB
testcase_20 WA -
testcase_21 AC 14 ms
7,812 KB
testcase_22 AC 13 ms
7,920 KB
testcase_23 AC 14 ms
7,880 KB
testcase_24 AC 14 ms
7,984 KB
testcase_25 AC 14 ms
8,240 KB
testcase_26 WA -
testcase_27 AC 14 ms
8,168 KB
testcase_28 WA -
testcase_29 AC 14 ms
7,812 KB
testcase_30 WA -
testcase_31 AC 14 ms
7,888 KB
testcase_32 AC 14 ms
8,268 KB
testcase_33 AC 92 ms
28,556 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 53 ms
18,920 KB
testcase_38 AC 59 ms
20,116 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 64 ms
21,940 KB
testcase_42 AC 41 ms
15,668 KB
testcase_43 AC 79 ms
26,776 KB
testcase_44 AC 42 ms
15,664 KB
testcase_45 WA -
testcase_46 AC 34 ms
13,544 KB
testcase_47 WA -
testcase_48 AC 14 ms
7,924 KB
testcase_49 AC 15 ms
7,836 KB
testcase_50 AC 13 ms
7,820 KB
testcase_51 AC 13 ms
7,740 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 or h%a[i]==0:
            ans = True
            break
    if ans:
        print("YES")
    else:
        print("NO")
    return

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