Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
The constraints are very small. Can we try every triplet?
Yes, we can. Use three loops to iterate through all the possible triplets, ensuring the condition i < j < k holds.