摘要:
参考https://space.bilibili.com/3203291/零神的题解 class Solution { public: int closestToTarget(vector<int>& arr, int target) { int ans = abs(arr[0] - target) 阅读全文
摘要:
#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 阅读全文