N = int(input()) d = 0

for i in range(n):

a , b= [int(i) for i in input().split()]

for s in range(i):

if (a[i] <= mac) and (b[i] >= moc):

d = d + 1

mac = a[i]

moc = b[i]

print(mac, moc)

выдает ошибку Traceback (most recent call last):
File "C:/Users/gleb/Documents/F. Ноутбуки.py", line 9, in
if (a[i] <= mac) and (b[i] >= moc):
TypeError: 'int' object is not subscriptable
на python

вопрос65378 вопрос65378    1   08.09.2021 21:48    2

Другие вопросы по теме Информатика