1 задача

 avatar
unknown
python
4 years ago
228 B
9
Indexable
month = int(input())
counter = 0
while True:
    string = input()
    # print(string)
    if string == '0': break
    stud_is, last_month = map(int, string.split())
    if last_month == month: counter += 1
print(counter)
Editor is loading...