I am getting WA in Counting Triangles (CT)
My approach is basically to count all the triangles in all directions for all lengths and add them up.
I found few test cases on net and it is working for them but I am still getting WA
removed after AC :)
Result of some test cases by program:
4
3 3
10 10
100 100
1000 1000
Output:
96
6020
43351700
418335167000
created
last reply
- 4
replies
- 138
views
- 2
users