結果

問題 No.2811 Calculation Within Sequence
ユーザー vwxyz
提出日時 2024-07-19 21:58:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 202 bytes
コンパイル時間 104 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 29,160 KB
最終ジャッジ日時 2024-07-19 21:58:48
合計ジャッジ時間 10,234 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 20 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
a,b=map(int,input().split())
T=0
for t in map(int,input().split()):
	T=math.gcd(T,t)
S=0
for s in map(int,input().split()):
	S=math.gcd(T,t)
if S%T==0:
	ans="Yes"
else:
	ans="No"
print(ans)
0