Problem3462--【语言基础】分解整数2

3462: 【语言基础】分解整数2

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

给定一个整数N(3<=1000),将这个整数分解为三个正整数a、b、c之和,要求a<b<c,请打印分解方案总数。
例如,输入8,则输出2,因为8可以分解为:
1+2+5
1+3+4

Sample Input Copy

8

Sample Output Copy

2

Source/Category