結果
| 問題 | No.1250 汝は倍数なりや? | 
| コンテスト | |
| ユーザー |  toshiro_yanagi | 
| 提出日時 | 2021-01-10 23:44:26 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                WA
                                 
                             | 
| 実行時間 | - | 
| コード長 | 292 bytes | 
| コンパイル時間 | 104 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 30,928 KB | 
| 最終ジャッジ日時 | 2024-11-21 08:37:17 | 
| 合計ジャッジ時間 | 4,582 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 31 WA * 18 | 
ソースコード
n, h = map(int, input().split())
A = list(map(int, input().split()))
ans = "NO"
trg = False
for i in range(n):
    Ai = A[i]
    if Ai == 0:
        break
    if h % Ai == 0:
        h //= Ai
    if Ai % h == 0:
        trg = True
    if i == n - 1 and trg:
        ans = "YES"
print(ans)
            
            
            
        