結果
問題 | No.2811 Calculation Within Sequence |
ユーザー |
|
提出日時 | 2025-02-12 11:59:25 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 176 ms / 2,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 4,832 ms |
コンパイル使用メモリ | 81,852 KB |
実行使用メモリ | 135,332 KB |
最終ジャッジ日時 | 2025-02-12 11:59:40 |
合計ジャッジ時間 | 10,162 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 41 |
ソースコード
from functools import reduceimport matha,b=map(int,input().split())T=list(map(int,input().split()))S=list(map(int,input().split()))g1=reduce(math.gcd,T)g2=reduce(math.gcd,S)print("Yes" if g2%g1==0 else "No")