![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
牛客
红牛不是啥
这个作者很懒,什么都没留下…
展开
-
【牛客算法周周练2 】BMusic Problem
【牛客算法周周练2 】B Music Problem传送门思路:我们不难想到,如果n>3600的话,无论物品的大小,我们肯定能够凑出3600的倍数来。所以问题就可以变成O(3600*3600)的一个暴力背包了。题目大意:给出N个数,问我们能否从中选出一些数字,使得其加和为3600的倍数。#include<string>#include<cstring>...原创 2020-04-15 08:56:48 · 133 阅读 · 0 评论 -
牛客算法周周练1 A Maximize The Beautiful Value
题目描述 Today HH finds a non-decreasing sequence(a1,a2....an,ai≤ai+1), he thinks it's not beautiful so he wants to make it beautiful. To make it, HH will choose exactly one number and move it ...原创 2020-04-12 17:46:31 · 176 阅读 · 0 评论 -
牛客OI周赛15-普及组 B三角形
链接:https://ac.nowcoder.com/acm/problem/204553来源:牛客网宝盒题目描述上天眷顾了牛牛,给牛牛n个宝盒。牛牛会从这n个箱子中各取一件宝物去当掉来换钱(每个箱子中有m 件宝物)。牛牛想知道他用不同的方法取宝物能当来的钱数量的前k小值,为了避免输出量过大只要输出前k小的累计和。输入描述:第一行一个整数n,k,表示宝箱个数以及前k小的可获得的价值,接...原创 2020-04-07 08:26:32 · 155 阅读 · 0 评论