伪代码

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

posted @ 2022-10-04 21:55  林致远  阅读(139)  评论(0编辑  收藏  举报