Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77477 冯诚阳 13奇数和与偶数和 Python3 Accepted 40 MS 3768 KB 123 2024-06-09 15:56:47

Tests(10/10):


Code:

n=int(input()) ji=0 ou=0 for i in range(1,n+1): if i%2==0: ou+=i else: ji+=i print(ji,ou)