HackerRank "Service Lane" in Python
Shorter, simpler, and more Pythonic would be:

N, T = map(int, input().split())
widths = list(map(int, input().split()))
for _ in range(T):
    i, j = map(int, input().split())
    vehicle = min(widths[segment] for segment in range(i, j + 1))
    print(vehicle)


You would miss out on the shortcut when encountering a bike-only segment, though.

I've also renamed x to segment for clarity.