Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
状态
142208
Run ID
作者
问题
语言
测评结果
Time
Memory
代码长度
提交时间
142208
丁俊杰
累加器
Python3
Accepted
31 MS
3724 KB
142
2026-01-01 17:21:10
Tests(1/1):
Code:
#方法三:while循环 res=0 #初始化累加器的值为0 i=1 #每次要加的数 while i<=100: res+=i i+=1 print(res)