sum要初始化为0 tot数组要开long long 不然int × int 会爆掉