摘要: 参考https://space.bilibili.com/3203291/零神的题解 class Solution { public: int closestToTarget(vector<int>& arr, int target) { int ans = abs(arr[0] - target) 阅读全文
posted @ 2020-07-20 11:01 Sexyomaru 阅读(157) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> #include <cmath> using namespace std; const int N = 200010, M = 18; int n,m; int w[N],f[N][M]; void init() { fo 阅读全文
posted @ 2020-07-20 10:56 Sexyomaru 阅读(147) 评论(0) 推荐(0) 编辑