Ответ:
n,a = map(int,input().split())
nevesokos_dni = [0,31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
vesokos_dni = [0,31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if a == 1:
print(vesokos_dni[n])
else: print(vesokos_dni[n])
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
n,a = map(int,input().split())
nevesokos_dni = [0,31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
vesokos_dni = [0,31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
if a == 1:
print(vesokos_dni[n])
else: print(vesokos_dni[n])