Problem C. Inversion
时间限制 2000 ms
内存限制 64 MB
Give an array A, the index starts from 1.
Now we want to know $B_{i}= \max\limits_{i\nmid j}A_{j} $ , $i \geq 2$.
输入数据
输出数据
For each test case output one line contains n-1 integers, separated by space, ith number is $B_{i+1}$.
样例输入
样例输出
$ Mathjax font initiator $