提交时间:2024-01-04 14:47:12

运行 ID: 36741

a = int(input()) s = 0 if a%2==0: for i in range(0,a+1,2): s+=i else: for i in range(0,a,2): s+=i print(s)