首页 > 其他分享 >伪代码

伪代码

时间:2022-10-04 22:00:26浏览次数:76  
标签:12 constant 代码 num answer white 118

https://blog.csdn.net/weixin_43886797/article/details/85569998

white num1

white num2

|num(1)-num (2)|=num (3)

until |num (n-1)-num(n)|=|num(n)-num(n+1)|=constant

white the answer is the constant

e.g132,12

132-12=120

120-12=118

118-12=106

 

 

 

12-12=0

12-0=12

12-0=12

the answer is 12

标签:12,constant,代码,num,answer,white,118
From: https://www.cnblogs.com/lin-zhi-yuan/p/16754589.html

相关文章