Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
85656 丁俊杰 13奇数和与偶数和 Python3 Accepted 34 MS 3764 KB 143 2024-07-19 22:18:51

Tests(10/10):


Code:

n=int(input()) jishu=0 oushu=0 for x in range(0,n+1): if x%2!=0: jishu+=x else: oushu+=x print(jishu,oushu)