plan:打算写一个每周算法讲题系列,今天就是第一天吧!
三天不读书,脑子变成猪;一周不刷题,智商掉为零!
今天给大家来一道开胃小菜,恩恩,最爱数学了,每次做数学题每次都被虐的好惨缺还是深陷其中不能自拔!上题!
【Problem】
- Consider equations having the following form:
a1x1 3+ a2x2 3+ a3x3 3+ a4x4 3+ a5x5 3=0
The coefficients are given integers from the interval [-50,50].
It is consider a solution a system (x1, x2, x3, x4, x5) that verifies the equation, xi∈[-50,50], xi != 0, any i∈{1,2,3,4,5}.
Determine how many solutions satisfy the given equation. - 【Input】
- The only line of input contains the 5 coefficients a1, a2, a3, a4, a5, separated by blanks.
- 【Output】
- The output will contain on the first line the number of the solutions for the given equation.
- 【Sample Input】
- 37 29 41 43 47
- 【Sample Output】
- 654
【翻译】
- 给你一个五元三次方程,给出五个未知数的系数,每个系数和未知数的范围均属于【-50,50】求满足等式结果为0的情况下五个未知数的个数的总数。
【思路】待补~~