結果
問題 |
No.1250 汝は倍数なりや?
|
ユーザー |
|
提出日時 | 2021-08-22 10:56:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 135 ms / 1,000 ms |
コード長 | 167 bytes |
コンパイル時間 | 415 ms |
コンパイル使用メモリ | 82,392 KB |
実行使用メモリ | 107,824 KB |
最終ジャッジ日時 | 2024-11-06 07:11:45 |
合計ジャッジ時間 | 5,146 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
ソースコード
from math import gcd N,H=map(int,input().split()) A=list(map(int,input().split())) for a in A: g=gcd(a,H) H//=g if H==1: print("YES") else: print("NO")