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