UVA12003 Array Transformer
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=242&page=show_problem&problem=3154
[PDF](https://uva.onlinejudge.org/external/120/p12003.pdf)

Input Format

Output Format

Explanation/Hint
Explanation: There is only one instruction: $L = 2, R = 8, v = 6, p = 10$. There are $4$ numbers
$(2,3,4,5)$ less than $6$, so $k = 4$. The new number in $A[10]$ is $11 ∗ 4/(8 − 2 + 1) = 44/7 = 6$.