0 赞
题解:P7371 [COCI2018-2019#4] Kisik
#include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e6 + 5; int n, k, W, ans = 1e18; struct house{int w, h;}a…
题解
存档题解 2 篇按获赞排序
在洛谷打开#include <bits/stdc++.h> #define int long long using namespace std; const int N = 1e6 + 5; int n, k, W, ans = 1e18; struct house{int w, h;}a…
cpp #include #include #include using namespace std; typedef long long ll; multiset st; ll n,k,d,ans;//d为前i个房子中选k个房子的总宽度的最小值 struct node{ ll …