結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,888 KB
testcase_01 AC 13 ms
7,872 KB
testcase_02 AC 13 ms
7,800 KB
testcase_03 AC 13 ms
7,776 KB
testcase_04 WA -
testcase_05 AC 13 ms
7,832 KB
testcase_06 AC 14 ms
7,940 KB
testcase_07 AC 13 ms
7,800 KB
testcase_08 AC 13 ms
7,936 KB
testcase_09 AC 13 ms
7,876 KB
testcase_10 AC 13 ms
7,884 KB
testcase_11 WA -
testcase_12 AC 14 ms
7,828 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 13 ms
7,836 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 13 ms
8,488 KB
testcase_24 AC 13 ms
8,396 KB
testcase_25 AC 14 ms
8,252 KB
testcase_26 WA -
testcase_27 AC 13 ms
8,360 KB
testcase_28 WA -
testcase_29 AC 13 ms
7,728 KB
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 76 ms
28,472 KB
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 AC 48 ms
18,872 KB
testcase_38 AC 53 ms
20,032 KB
testcase_39 WA -
testcase_40 WA -
testcase_41 AC 55 ms
21,884 KB
testcase_42 AC 40 ms
15,632 KB
testcase_43 AC 67 ms
26,756 KB
testcase_44 AC 40 ms
15,652 KB
testcase_45 WA -
testcase_46 AC 32 ms
13,608 KB
testcase_47 WA -
testcase_48 WA -
testcase_49 AC 16 ms
7,824 KB
testcase_50 AC 13 ms
7,812 KB
testcase_51 AC 14 ms
7,796 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()
    div = set(Divisors(h))
    div.discard(1)
    ans = False
    for i in range(n):
        if a[i] in div:
            ans = True
            break
    if ans:
        print("YES")
    else:
        print("NO")
    return

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