結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2023-05-15 01:49:47 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 185 bytes | 
| コンパイル時間 | 205 ms | 
| コンパイル使用メモリ | 82,048 KB | 
| 実行使用メモリ | 159,744 KB | 
| 最終ジャッジ日時 | 2024-11-30 11:33:21 | 
| 合計ジャッジ時間 | 14,936 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 45 TLE * 4 | 
ソースコード
import math
N, H = map(int, input().split())
A = list(map(int, input().split()))
G = 1
for a in A:
    G *= math.gcd(a, H)
    if G%H==0:
        print("YES")
        exit()
print("NO")
            
            
            
        