Counting Triples

**For original problem statement, pls refer to the source image down below **

Once upon a time, in a land where numbers roamed free, there existed a magical array that could contain as many integers ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Input Variables
Execution Result: