Northeast

The 17th Chinese Northeast Collegiate Programming Contest

链接:[https://codeforces.com/gym/104366](https://codeforces.com/gym/104366) ## A. Cask Effect ```cpp #include "bits/stdc++.h" using namespace std; using ......

The 13th Northeast Collegiate Programming Contest

## **Problem B. Balanced Diet** 其实就是对每种糖果从大到小的排序后,计算前缀和后再 $O(n)$ 处理,由于最多只有 $n$ 个糖果,所以最大复杂度是 $O(nlogn)$。对于题目给的每种糖果的限制 $limit$ ,就把当前小于 $limit$ 的贡献加到 $ma ......
Programming Collegiate Northeast Contest The
共2篇  :1/1页 首页上一页1下一页尾页