Hxin999cyx @ 2024-01-29 14:52:48
k = int(input()) s = 0 i = 0 while s <= k: i += 1 s += i s2 = 0 for x in range(1,i): s2 = s2 + x*2 S = s2 + (k+1-i)i print(S)
by __QHY__ @ 2024-01-29 15:06:07
@Hxin999cyx
改成代码格式OK?
by __QHY__ @ 2024-01-29 15:06:55
并且给些注释