Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67163 胡海峰老师 函数求和 Python3 Accepted 26 MS 3748 KB 193 2024-03-14 20:03:40

Tests(1/1):


Code:

def simle(a,b): s = 0 for i in range(a,b+1): s = s + i return s a,b = 1,10 print( simle(a,b)) a,b = 20,30 print( simle(a,b)) a,b = 35,45 print( simle(a,b))