#P32. [KBC001G] ABC
[KBC001G] ABC
Source
This problem is adapted from Long Long OJ. All rights reserved.
Description
Given an integer , find all valid pairs consisting of three integers that satisfy the following conditions:
Input
An integer .
Output
Output the sum of over all the valid pairs .
Samples
5
5
20
80
Tips
Sample Explanation 2:
The valid pairs are: $(3,4,5),(6,8,10),(5,12,13),(9,12,15),(8,15,17),(12,16,20).$
As a result, the answer is
For of the testcases, .