输入: n,n为正整数
输出:k
k←0
while n≥1
for j←1 to n
k←k+1
n←n-1
return k
求解加法執(zhí)行次數(shù)
慕函數(shù)8132203
2018-03-14 19:20:29