* Chef likes all arrays equally. But he likes some arrays more equally than others. In particular, he loves Rainbow Arrays. An array is Rainbow if it has the following structure: First a1 elements ...
Read problem statements in Mandarin Chinese, Russian, and Vietnamese as well. Given an array B of length N, find an array A of length N where 0≤Ai≤109 such that array C where Ci=AimodBi, ∀i∈{1,2,...,N ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results