結果
問題 | No.2811 Calculation Within Sequence |
ユーザー |
|
提出日時 | 2024-07-19 21:23:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 178 ms / 2,000 ms |
コード長 | 213 bytes |
コンパイル時間 | 321 ms |
コンパイル使用メモリ | 82,300 KB |
実行使用メモリ | 132,316 KB |
最終ジャッジ日時 | 2024-07-19 21:23:22 |
合計ジャッジ時間 | 8,029 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 41 |
ソースコード
a,b=map(int,input().split())t=list(map(int,input().split()))s=list(map(int,input().split()))import mathg=0for i in t:g=math.gcd(g,i)for i in s:if i%g:print("No")exit()print("Yes")