結果
| 問題 |
No.2811 Calculation Within Sequence
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-07-19 21:26:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 323 bytes |
| コンパイル時間 | 321 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 162,488 KB |
| 最終ジャッジ日時 | 2024-07-19 21:26:57 |
| 合計ジャッジ時間 | 7,880 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 29 WA * 12 |
ソースコード
a, b = map(int, input().split())
T = list(map(int, input().split()))
S = list(map(int, input().split()))
if len(set(T)) == 1:
if all(s % T[0] == 0 for s in S):
print('Yes')
else:
print('No')
exit()
if all(t & 1 == 0 for t in T) and any(s & 1 for s in S):
print('No')
exit()
print('Yes')