站神的 A+B problem

Time Limit
2s
Memory Limit
32768KB
Judge Program
Standard
Ratio(Solve/Submit)
7.32%(3/41)
Description:

有一天站神和jujimeizuo在路边玩耍,jujimeizuo身为数学之神自然要出些题目刁难站神。只见他满脸低沉,思考许久,缓缓从口中道出a+b=c.....


站神突然兴奋,大声呼喊:“这题我懂!”,可谁知jujimeizuo不讲武德,接着说道,“已知a和b的范围是(0~1000000), c的范围(0~1000000),请问有多少种满足条件的三元组(x, y, z)  满足x + y = z。其中 x ∈ [0, a] 且 y ∈ [0, b]  且 z ∈ [0, c]


Input:

输入三个整数a,b,c


0 ≤ a 1000000
0 ≤ b 1000000
0 ≤ c 1000000

Output:

输出满足条件的三元组个数

Sample Input:
2 2 2
Sample Output:
6

Submit