Counting triangles

Problem Name:
Counting triangles
Site:CodeForces
Links:
Tags: