n, t = list(map(int, input().strip().split())) deadlines = list(map(int, input().strip().split())) cur = 0 ans = n for i in range(len(deadlines)): if deadlines[i]>=cur+t: ans-=1 cur+=t print(ans) 第一题我这样为啥不对啊😓