function output (n) { var curN = n; var arr = []; while (curN >= 100) { var a = curN/1000; arr.push(a) curN -= a } return arr}
返回的数组中包含你每天消耗的积分