[Solved] One for Couples Newton’s Triwizard Contest with C++
![[Solved] One for Couples Newton's Triwizard Contest with C++ [Solved] One for Couples Newton's Triwizard Contest with C++](https://realcoder.techss24.com/wp-content/uploads/2022/12/Solved-One-for-Couples-Newtons-Triwizard-Contest-with-C-768x502.png)
You are given an array of size N. You will now be asked Q queries. In each query, you will be given two pairs of integers (A, B) and (C, D). To answer this query, you must take all values…