t = int(input())
if t <= 3:
print("GREEN")
elif t <= 5:
print("RED")
elif t <= 8:
elif t <= 10:
elif t <= 13:
elif t <= 15:
elif t <= 18:
elif t <= 20:
elif t <= 23:
elif t <= 25:
elif t <= 28:
elif t <= 30:
elif t <= 33:
elif t <= 35:
elif t <= 38:
elif t <= 40:
elif t <= 43:
elif t <= 45:
elif t <= 48:
elif t <= 50:
elif t <= 53:
elif t <= 55:
elif t <= 58:
elif t <= 60:
def main():
def check(marks):
for i in marks:
if i not in range(1,6):
normal = False
break
else:
normal = True
return normal
marks = list(map(int, input().split()))
normal = check(marks)
if normal:
if marks.count(3) >= 1:
print('NO')
print('YES')
print('input error. Mark can not be higher than 5 or lower than 1')
if __name__ == "__main__":
main()
end = input()
Не советую копировать, сайт нарушает табуляции в коде и по итогу интерпретатор выдаёт ошибку. Лучше попытаться понять и воссоздать самому
t = int(input())
if t <= 3:
print("GREEN")
elif t <= 5:
print("RED")
elif t <= 8:
print("GREEN")
elif t <= 10:
print("RED")
elif t <= 13:
print("GREEN")
elif t <= 15:
print("GREEN")
elif t <= 18:
print("RED")
elif t <= 20:
print("GREEN")
elif t <= 23:
print("RED")
elif t <= 25:
print("GREEN")
elif t <= 28:
print("RED")
elif t <= 30:
print("GREEN")
elif t <= 33:
print("RED")
elif t <= 35:
print("GREEN")
elif t <= 38:
print("RED")
elif t <= 40:
print("GREEN")
elif t <= 43:
print("RED")
elif t <= 45:
print("GREEN")
elif t <= 48:
print("RED")
elif t <= 50:
print("GREEN")
elif t <= 53:
print("RED")
elif t <= 55:
print("GREEN")
elif t <= 58:
print("RED")
elif t <= 60:
print("GREEN")
def main():
def check(marks):
for i in marks:
if i not in range(1,6):
normal = False
break
else:
normal = True
return normal
marks = list(map(int, input().split()))
normal = check(marks)
if normal:
if marks.count(3) >= 1:
print('NO')
else:
print('YES')
else:
print('input error. Mark can not be higher than 5 or lower than 1')
if __name__ == "__main__":
main()
end = input()
Не советую копировать, сайт нарушает табуляции в коде и по итогу интерпретатор выдаёт ошибку. Лучше попытаться понять и воссоздать самому