Python3 代码
x = eval(input())
RANGE = [25, 50, 75, 100]
for i in range(0, 4):
if x <= RANGE[i] and x >= 0 and x <= 100:
if RANGE[i] == 25:
print("Intervalo ["+str(RANGE[i]-25)+","+str(RANGE[i])+"]")
else:
print("Intervalo ("+str(RANGE[i]-25)+","+str(RANGE[i])+"]")
break
break
if x < 0 or x > 100:
print("Fora de intervalo")