Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
状态
68904
Run ID
作者
问题
语言
测评结果
Time
Memory
代码长度
提交时间
68904
胡海峰老师
函数求和
Python3
Accepted
27 MS
3728 KB
126
2024-03-27 21:51:54
Tests(1/1):
Code:
def sum(a,b): c = 0 for x in range(a,b+1): c = c + x print(c) sum(1,10) sum(20,30) sum(35,45)