結果
| 問題 |
No.1250 汝は倍数なりや?
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2020-08-04 20:45:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 1,000 ms |
| コード長 | 235 bytes |
| コンパイル時間 | 159 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 107,648 KB |
| 最終ジャッジ日時 | 2024-10-15 06:36:36 |
| 合計ジャッジ時間 | 4,566 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 |
ソースコード
import sys
from math import gcd
N,H=map(int,input().split())
A=list(map(int,input().split()))
if 0 in A:
print("YES")
sys.exit()
for a in A:
G=gcd(a,H)
H//=G
if H==1:
print("YES")
else:
print("NO")
Kazun