Count right angle triangles

Problem Name:
Count right angle triangles
Site:Spoj
Links:
Tags:
Problem setters: