Sichuan University Programming Contest 2008 Preliminary (Single)

E: Single color triangles