1. for _ in range(int(input())):
  2. n, x, y = map(int, input().split())
  3. a = list(map(int, input().split()))
  4. if x < y:
  5. print((max(a) + y - 1)//y)
  6. continue
  7. ans = 0
  8. for i in reversed(range(0, n)):
  9. a[i] -= ans*y
  10. if a[i] <= 0:
  11. continue
  12. reqd = (a[i] + x - 1)//x
  13. ans += reqd
  14. print(ans)