結果
| 問題 |
No.2811 Calculation Within Sequence
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-19 21:27:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 503 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 43,100 KB |
| 最終ジャッジ日時 | 2024-07-19 21:28:03 |
| 合計ジャッジ時間 | 7,496 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 41 |
ソースコード
a, b = map(int, input().split())
A = list(map(int , input().split()))
B = list(map(int , input().split()))
x = A[0]
for p in A :
x = gcd(x, p)
y = B[0]
for q in B :
y = gcd(y, q)
print("Yes" if y % x == 0 else "No")