Ensure that you are logged in and have the required permissions to access the test.
A server error has occurred. Please refresh the page or try after some time.
An error has occurred. Please refresh the page or try after some time.
3.3
You are given an array A having N integers. Find the number of triplets (i,j,k) such that
Input format
Output format
For each test case, print the number of triplets that satisfies the given conditions in a separate line.
Constraints
1≤T≤103≤N≤1051≤Ai≤105
2 4 4 5 6 2 4 1 1 4 5
0 1
A password reset link will be sent to the following email id
?