码迷,mamicode.com
首页 >  
搜索关键字:hdu 1394 minimum inv    ( 34217个结果
Linux下OpenGL的安装与cmake编译OpenGL程序
{ OpenGL安装安装命令如下:$ sudo apt install build-essential $ sudo apt install libgl1-mesa-dev$ sudo apt install libglu1-mesa-dev $ sudo apt install freeglut3 ...
分类:系统相关   时间:2020-06-01 23:40:52    阅读次数:167
HDU-5608(杜教筛)
HDU-5608(杜教筛) 题意:\(G(n)=n^2?3n+2=\sum_{d|n}F(d)\),求$\sum_1^nF(i)$ 反演得到:\(F(n)=\sum_{d|n}\mu(d)G(\frac{n}{d})\) 则$\sum_1^nF(i)=\sum_i\sum_{d|i}\mu(d)G( ...
分类:其他好文   时间:2020-06-01 20:47:19    阅读次数:44
express+mongodb实现简单登录注册
login.html代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,m ...
分类:数据库   时间:2020-06-01 16:52:13    阅读次数:75
[kuangbin带你飞]专题1-23 免费馅饼 HDU - 1176
题目链接:https://vjudge.net/problem/HDU-1176 都说天上不会掉馅饼,但有一天gameboy正走在回家的小径上,忽然天上掉下大把大把的馅饼。说来gameboy的人品实在是太好了,这馅饼别处都不掉,就掉落在他身旁的10米范围内。馅饼如果掉在了地上当然就不能吃了,所以ga ...
分类:其他好文   时间:2020-05-31 19:55:08    阅读次数:55
64.Minimum Path Sum
给定一个矩阵,矩阵中的元素表示成本,求,从矩阵左上角到右下角最小的成本路线,每一次只能向右或者向下走。 Input:[ [1,3,1], [1,5,1], [4,2,1]]Output: 7Explanation: Because the path 1→3→1→1→1 minimizes the s ...
分类:其他好文   时间:2020-05-31 17:45:01    阅读次数:54
11. Minimum Depth of Binary Tree
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:其他好文   时间:2020-05-31 00:45:36    阅读次数:52
[kuangbin带你飞]专题1-23 Monkey and Banana
题目链接:https://vjudge.net/problem/HDU-1069 A group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the ...
分类:其他好文   时间:2020-05-30 13:06:28    阅读次数:65
小白进阶之路-HDU - 2594
题意:给你两个字符串s1,s2,让你寻找最长s1前缀和s2后缀的匹配长度,若长度大于0,且输出最长匹配s1前缀。 #include <cstdio> #include <cstring> #include <cmath> #include <algorithm> using namespace st ...
分类:其他好文   时间:2020-05-30 01:32:37    阅读次数:72
HDU 3938 Portal(并查集,离线)
题目链接 #题目大意 查询有多少对(x,y),使得x到y至少存在一条路径,路径上的边权值最大值不超过L。 #解题思路 从小到达依次枚举各个边,就能得到若干个图,图里的每条边都不大于当前的最大边(废话)。但是问题在于如何求出每次新加入一条边之后的点的对数,因为所有的边不一定是全都连接一起的。 如果一条 ...
分类:其他好文   时间:2020-05-29 23:01:22    阅读次数:59
拯救大兵瑞恩 HDU - 4845 (分层)
拯救大兵瑞恩 思路:钥匙种类p = 10,我们可以拥有不同种类钥匙,通过这个我们可以把图分成2^p层,表示拥有不同种类钥匙的情况。 #include <iostream> #include <vector> #include <cstdio> #include <cstring> #include ...
分类:其他好文   时间:2020-05-29 13:34:32    阅读次数:49
34217条   上一页 1 ... 26 27 28 29 30 ... 3422 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!