if (task[day] == 0 || task[day] < val)
task[day] = val;
这句不是只能更新task[day]一个值吗?能更新一个区间重复的数吗?求解