D. Zigzags
D. Zigzags
time limit per test2 seconds
memory limit per test256 megabytes
inputstandard input
outputstandard output
You are given an array a1,a2…an. Calculate the number of tuples (i,j,k,l) such that:
1≤i<j<k<l≤n;
ai=ak and aj=al;
Input
The first
原创
2021-01-21 21:36:32 ·
127 阅读 ·
0 评论