結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2020-12-21 21:46:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 152 ms / 1,000 ms |
| コード長 | 156 bytes |
| コンパイル時間 | 171 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 107,776 KB |
| 最終ジャッジ日時 | 2024-09-21 13:08:33 |
| 合計ジャッジ時間 | 6,265 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 |
ソースコード
n,h = map(int,input().split())
*a, = map(int,input().split())
from math import gcd
for ai in a:
g = gcd(h,ai)
h //= g
print("YES" if h==1 else "NO")
convexineq