腾讯第二题,数组越界或者语法错误,本地IDE牛客测试上都能跑,问题出自哪里 import math t,k = [int(i) for i in input().split()] for i in range(t): a,b = [int(j) for j in input().split()] total_num = 0 for num in range(a,b+1): range_num = 1 if num//k<1: total_num+=range_num elif num//k&g...