【入门2】分支结构https://www.luogu.com.cn/training/101#problemsP5710 【深基3.例2】数的性质
n = int(input())
if (n % 2 == 0) and (n <= 12 and n > 4):
a = 1
else:
a = 0
if (n % 2 == 0) or (n <= 12 and n > 4):
b = 1
else:
b = 0
if b == 1:
d = 0
else:
d = 1
c = 0
if (b == 1) and (a != 1):
c = 1
else:
c = 0
print(a, b, c, d)
n = int(input())
ans = 0
if n % 4 == 0:
if n % 100 == 0:
if n % 400 == 0:
ans = 1
else:
ans = 1
print(ans)
n = int(input())
if n == 0:
print("Today, I ate 0 apple.")
elif n == 1:
print("Today, I ate 1 apple.")
else:
print("Today, I ate %d apples."%n)