#P7540. [COCI 2009/2010 #1] DOMINO
[COCI 2009/2010 #1] DOMINO
Description
For all non-negative integer pairs that satisfy , find the value of .
Input Format
One line with one integer , as described in the statement.
Output Format
One line with one integer, representing the value of .
2
12
3
30
15
2040
Hint
Sample 2 Explanation
All pairs that satisfy the requirement are: , , , , , , , , , .
Constraints
For of the testdata, .
Notes
The scoring of this problem follows the original COCI problem settings, with a full score of .
Translated from COCI2009-2010 CONTEST #1 T2 DOMINO.
Translated by ChatGPT 5
京公网安备 11011102002149号