执行下面 Python 代码,其时间复杂度是( )。
tot = 0 #保存累加求和的结果
for i in range(1,100+1):
tot += i
print(tot)
O(n)
O(nlogn)
O(nlog2n)
O(n2)