結果
問題 | No.1250 汝は倍数なりや? |
ユーザー |
👑 ![]() |
提出日時 | 2020-08-14 19:41:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 168 ms / 1,000 ms |
コード長 | 205 bytes |
コンパイル時間 | 269 ms |
コンパイル使用メモリ | 82,368 KB |
実行使用メモリ | 107,776 KB |
最終ジャッジ日時 | 2024-10-15 06:36:41 |
合計ジャッジ時間 | 4,880 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
ソースコード
import sysfrom math import gcdN,H=map(int,input().split())A=list(map(int,input().split()))A.sort()for a in A:G=gcd(a,H)H//=Gif H==1:print("YES")exit()print("NO")