結果
| 問題 | No.1250 汝は倍数なりや? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-09 21:24:23 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 162 ms / 1,000 ms |
| コード長 | 160 bytes |
| 記録 | |
| コンパイル時間 | 454 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 44,576 KB |
| 最終ジャッジ日時 | 2026-04-02 22:12:52 |
| 合計ジャッジ時間 | 7,119 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 49 |
ソースコード
from math import gcd
n, h = map(int, input().split())
for a in map(int, input().split()):
h //= gcd(h, a)
if h == 1:
print('YES')
else:
print('NO')