Đếm tam giác


Submit solution

Points: 1
Time limit: 1.0s
Memory limit: 1G

Problem type

Ví dụ

Ví dụ 1

input

6
1 2 2 2 4 5

output

2
Ví dụ 2

input

8
1 1 1 2 2 2 2 3

output

4

Comments

There are no comments at the moment.