- 贪心
五题思路
- @ 2025-12-2 17:26:32
用 a[0+f]+a[n-l] 做指标 //前面套个循环(int i = 0) 然后写个 f++ n++ 用一个数来存储a[0+f]+a[n-l] 如果此数大于100(w) cnt++ else cnt+2//
0 条评论
目前还没有评论...
用 a[0+f]+a[n-l] 做指标 //前面套个循环(int i = 0) 然后写个 f++ n++ 用一个数来存储a[0+f]+a[n-l] 如果此数大于100(w) cnt++ else cnt+2//