正文
闰年
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
a = int(input())
b = int(input())
count=0
for i in range(a, b + 1):
if (i % 4 ==0 and i % 100!=0) or (i % 100 == 0 and i % 400 == 0):
count+=1
print(count)
偶数和
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
print( sum(i for i in range(2,n+1,2)) )
密码
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
a, b, c = [int(i) for i in input().split()]
print((a+1)*(b+1)*(c+1))
塔楼高度
import math
import sys
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
n = int(input())
inputs = input().split()
print(sum(1 if int(i) > int(inputs[0]) else 0 for i in inputs) + 1)
写在最后
欢迎技术类的问题到这里提出,我会逐个解答