Run ID:96082

提交时间:2024-11-03 08:40:29

N=int(input()) s=0 z=0 for x in range(1,N+1): if x%2==0: s=s+x else: z=z+x print(z,s)