結果
問題 |
No.2811 Calculation Within Sequence
|
ユーザー |
|
提出日時 | 2024-07-08 11:14:05 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 221 bytes |
コンパイル時間 | 392 ms |
コンパイル使用メモリ | 82,456 KB |
実行使用メモリ | 132,064 KB |
最終ジャッジ日時 | 2024-07-08 12:14:38 |
合計ジャッジ時間 | 6,953 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 26 WA * 15 |
ソースコード
from math import gcd a,b=map(int,input().split()) t=list(map(int,input().split())) s=list(map(int,input().split())) g=t[0] for i in t: g=gcd(g,i) sg=s[0] for i in s: sg=gcd(sg,i) ans="Yes" if g!=sg: ans="No" print(ans)