使用k次半价,求最小花费 #include <bits/stdc++.h> #define ll long long using namespace std; const int MAXN = 10005; const ll inf = 1e18 + 7; struct edge { int to; ll w; int nex; }e[50000 * 2]; int head[MAXN], tot; int n, m, k; void add(int a, int b, ll c) { e[tot] = edge{ b,c,head[a] }; head[a] = t...