2019-01-05から1日間の記事一覧

Codeforces Hello 2019 F. Alex and a TV Show

https://codeforces.com/contest/1097/problem/FA[k] denote the number of multiples of k included in the multiset A. Then the following holds.\[(A \cup B)[i]=A[i]+B[i]\]\[(A \times B)[i]=A[i] \times B[i]\]Clearly, $A \cup B$. Conversely, $a$ …