Neil_Qian_ @ 2024-11-29 22:17:15
by CSPJ300_DRC1005 @ 2024-11-29 22:20:43
for循环不会?
by Neil_Qian_ @ 2024-11-29 22:25:08
@CSPJ300_DRC1005 数学方法不会
by dg114514 @ 2024-11-29 22:36:36
@NeilQian
by Controls_Wishes @ 2024-11-29 22:41:10
|x-1| 可看做数轴上一点到 1 的距离
同理,对于任意n,|x-n| 看做一点x到n的距离
然后就简单了
by Controls_Wishes @ 2024-11-29 22:45:22
答案应该是-1010 ,x<=1时取得