码迷,mamicode.com
首页 >  
搜索关键字:hdu 1087 super jumpi    ( 37517个结果
[hdu-6797]Tokitsukaze and Rescue 爆搜枚举+dijstra最短路 2020多校3
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6797 题目大意:n个点的完全图,要求删k条边,求删完k条边后的最短路的最大值。 3≤n≤50,1≤k≤min(n?2,5) 边权为[ 1 , 10^4 ] 的随机数 题解: 删的边一定在当前的最短路上, ...
分类:Web程序   时间:2020-07-29 09:55:43    阅读次数:145
HDU 6608
HDU 6608 题意:给以你一个质数,求小于它的最大质数的阶乘。 分析:Miller-Rabin快速判断素性,找到这个最大素数。此外,加上威尔逊定理推式子就好了。威尔逊定理描述的内容是对于一个正素数p: ? \((k-1)!modk$\)= k-1$ 有了这个定理,我们就可以很容易得到小于k最大素 ...
分类:其他好文   时间:2020-07-29 00:42:21    阅读次数:80
HDU-3652(数位dp)
#pragma warning (disable : 4996) #include<iostream> #include<algorithm> //#include<unordered_map> #include<fstream> #include<iomanip> #include<string> ...
分类:其他好文   时间:2020-07-29 00:41:30    阅读次数:78
HDU 6797 Tokitsukaze and Rescue
Princess CJB has lived almost her entire life in the isolated town of Ertona, where CJB uses her unique ability to recognize where crystals of materia ...
分类:其他好文   时间:2020-07-28 22:14:42    阅读次数:73
Piggy-Bank(完全背包)
HDU - 1114 题目翻译: 在acm能够做任何事情之前, 必须编制预算并获得必要的财政支持。这一行动的主要收入来自IBM。这个想法其实很简单,每当一些会员有一点小钱时,他就会把所有的硬币都扔到小猪存钱罐里。这个过程是不可逆转的, 除非打破猪,否则硬币不能拿出来。过了足够长的时间, 存钱罐里应该 ...
分类:其他好文   时间:2020-07-28 22:08:26    阅读次数:76
数位dp之f(x)
HDU - 4734 题目大致意思:我们定义十进制数x的权值为f(x) = a(n)*2^(n-1)+a(n-1)*2(n-2)+...a(2)*2+a(1)*1,a(i)表示十进制数x中第i位的数字。 题目给出a,b,求出0~b有多少个不大于f(a)的数。 这个f(x)计算就和数位计算是一样的,就 ...
分类:其他好文   时间:2020-07-28 22:05:32    阅读次数:69
Java多线程--两个线程同时对一个人的年龄进行增加和修改
1 public class Thread_A extends Thread { 2 Human human; 3 4 public Thread_A(String name, Human human) { 5 super(name); 6 this.human = human; 7 } 8 9 @ ...
分类:编程语言   时间:2020-07-28 00:02:43    阅读次数:81
盘点一下面试官最爱问的泛型和包装类,建议反复观看,真的写的非常详细
泛型泛型:可以在类或方法中预支地使用未知的类型。tips:一般在创建对象时,将未知的类型确定具体的类型。当没有指定泛型时,默认类型为Object类型。通过我们如下代码体验一下:publicclassGenericDemo2{publicstaticvoidmain(String[]args){Collection<String>list=newArrayList<String&g
分类:其他好文   时间:2020-07-27 09:55:32    阅读次数:87
HDU 1518 Squre
Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? InputThe first line of input contains N, the number ...
分类:其他好文   时间:2020-07-27 09:42:59    阅读次数:80
hdu 2544 最短路(floyd)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2544 题意 给出一个 $n$ 点 $m$ 边的带权无向图,找出结点 $1$ 到结点 $n$ 的路径最小权。($n \le 100, m \le 10000$) 题解 $n$ 的范围较小,可以用 $O_{ ...
分类:其他好文   时间:2020-07-27 09:38:16    阅读次数:51
37517条   上一页 1 ... 19 20 21 22 23 ... 3752 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!