結果
問題 |
No.1250 汝は倍数なりや?
|
ユーザー |
|
提出日時 | 2022-01-30 18:08:43 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 147 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 113,024 KB |
最終ジャッジ日時 | 2024-06-11 08:22:09 |
合計ジャッジ時間 | 5,312 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 29 WA * 1 TLE * 1 -- * 18 |
ソースコード
from math import gcd n, h = map(int, input().split()) A = list(map(int, input().split())) res = 1 for i in range(n): res = (res * A[i]) // gcd(res, A[i]) if res % h == 0: print("YES") else: print("NO")