Calculate the number of pairs (P, S) such that {A[0], ..., A[P]} = {A[S], ..., A[N-1]}.
Stats:
3237 started
617 silver awards
146 golden awards
Hall of fame:
1
Chenyang Wu
Time: 47 minutes
2
Denis Yudin
Time: 55 minutes
3
Xiongjun Liang
Time: 1 hour, 8 minutes