Rosetta Problems

Sum of the Number of Triangles

https://onlinejudge.u-aizu.ac.jp/problems/0426