import math N1=int(input()) N2=int(input()) N3=int(input()) if N1==1 or N1==2: N_1=N1-1 N_2=N2+12 if N3>15 and N2>10 and N1>1582: A=N_1//100 B=2-A+(A//4) else: B==0 C=math.trunc(365.25*N_1) D=math.trunc(30.6001*(N_2+1)) J=B+C+D+N3+1720994.5 print(J)
import math N1=int(input()) N2=int(input()) N3=int(input()) if N1==1 or N1==2: N_1=N1-1 N_2=N2+12 if N3>15 and N2>10 and N1>1582: A=N_1//100 B=2-A+(A//4) else: B==0 C=math.trunc(365.25*N_1) D=math.trunc(30.6001*(N_2+1)) J=B+C+D+N3+1720994.5 print(J)
B==0
JOHN_16Не помогло. Пишет, что ValueError: invalid literal for int() with base 10: '' on line 3 in main.py
== заменить на =
213помогло помогло! Я же не говорил что у вас только 1 ошибка в коде.
Не помогло. Пишет, что ValueError: invalid literal for int() with base 10: '' on line 3 in main.py
import math N1=int(input()) N2=int(input()) N3=int(input()) if N1==1 or N1==2: N_1=N1-1 N_2=N2+12 if N3>15 and N2>10 and N1>1582: A=N_1//100 B=2-A+(A//4) else: B=0 N_1=N1-1 N_2=N2+12 A=N_1//100 B=2-A+(A//4) C=math.trunc(365.25*N_1) D=math.trunc(30.6001*(N_2+1)) J=B+C+D+N3+1720994.5 print(J)
N_1=N1-1 N_2=N2+12 A=N_1//100 B=2-A+(A//4)