【++注意事项++】

1,乘法溢出:  n*m/t   结果可能是正常数,但是n*m可能会溢出

2,开平方注意小数:sqrt()后注意小数影响根据需要加减+-0.5『sqrt会直接减去小数点后面的,所以根据需要+0.5』

3,读题注意是选不超过n个还是n种

例:【Given N integers, then the players choose no more than four integers from them (can be repeated) and add them together.

        给n个数,选出不超过4__(可重复),把他们相加;//是4个数,不超过4种 不知为何。。。

原文地址:https://www.cnblogs.com/zhangfengnick/p/5715219.html