摘要:
CF1200B 解法: 贪心。当在第i列时,尽可能多的取走第i列的木块使得袋子里的木块尽可能多 CODE: cpp include include include include using namespace std; const int N = 1e3 + 5; int n,m,k,T,h[N] 阅读全文
摘要:
CF1197C 题意: 有一个递增的数列,把它分成k段,找到这样的分段方法,即每段最大值减最小值的和最小 解法: 分成k段,即要加k 1个隔断,这k 1个隔断,能隔开差值最大的几个,那最后得到分隔后的各段最大最小差值和最小 CODE: cpp include include include incl 阅读全文