https://codeforces.com/contest/1579/problem/E1 算法的本质思路是贪心 第一点看到n特别大,又是求最优解问题,多手玩几个数字就好了 在实现上要会写小根堆, 赛场上a了,赛后被卡在test 14 #include<bits/stdc++.h>usingnamespacestd;constintmaxn=1e6;intn,vis[maxn];struc
CodeForces Algorithms. Contribute to DionysiosB/CodeForces development by creating an account on GitHub.