中间那步
                 if(inter%k<=(k-1))
                    count+=inter/k; 
                else
                    count+=inter/k + 1; 
感觉是关键,可能有些人没考虑到