結果
| 問題 | No.1250 汝は倍数なりや? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-05-15 01:49:47 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 185 bytes |
| 記録 | |
| コンパイル時間 | 179 ms |
| コンパイル使用メモリ | 85,516 KB |
| 実行使用メモリ | 113,520 KB |
| 最終ジャッジ日時 | 2026-05-24 03:04:16 |
| 合計ジャッジ時間 | 10,307 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 46 TLE * 3 |
ソースコード
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")