码迷,mamicode.com
首页 >  
搜索关键字:hdoj 敌兵布阵    ( 2812个结果
HDOJ 4006 The kth great number
The kth great number Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65768/65768 K (Java/Others) Total Submission(s): 6240    Accepted Submission(s): 2532 Problem Description Xiao ...
分类:其他好文   时间:2014-05-23 08:16:40    阅读次数:272
最大匹配-标准-hdoj-2063
标准的二部图最大匹配。...
分类:其他好文   时间:2014-05-23 07:44:39    阅读次数:189
魔咒词典------HDOJ杭电1880(字符串的处理,很简单)
Problem Description 哈利波特在魔法学校的必修课之一就是学习魔咒。据说魔法世界有100000种不同的魔咒,哈利很难全部记住,但是为了对抗强敌,他必须在危急时刻能够调用任何一个需要的魔咒,所以他需要你的帮助。 给你一部魔咒词典。当哈利听到一个魔咒时,你的程序必须告诉他那个魔咒的功能;当哈利需要某个功能但不知道该用什么魔咒时,你的程序要替他找到相应的魔咒。如果他要的魔咒不...
分类:其他好文   时间:2014-05-22 08:08:01    阅读次数:279
Is It A Tree?------HDOJ杭电1325(两种方法,可以用也可以不用并查集!!!!!!详解)
Problem Description A tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by directed edges between nodes satisfying the follow...
分类:其他好文   时间:2014-05-21 10:55:57    阅读次数:325
Big Number------HDOJ杭电1212(大数运算)
Problem Description As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B. To make the problem easie...
分类:其他好文   时间:2014-05-20 14:42:07    阅读次数:324
HDOJ 1097 A hard puzzle
Problem Descriptionlcy gives a hard puzzle to feng5166,lwg,JGShining and Ignatius: gave a and b,how to know the a^b.everybody objects to this BT probl...
分类:其他好文   时间:2014-05-19 16:05:39    阅读次数:188
线段树-点修改-hdoj-1754
很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input...
分类:其他好文   时间:2014-05-18 10:14:18    阅读次数:273
HDOJ 1061 Rightmost Digit
Rightmost DigitTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 30543Accepted Submission(s): 11624P...
分类:Web程序   时间:2014-05-17 23:59:57    阅读次数:459
hdu1166敌兵布阵
1 //Accepted 250MS 2480K 2 #include 3 #include 4 const int MAXN = 50005; 5 struct node 6 { 7 int l,r; 8 int add,sum; 9 }f[3*MAXN];10 int n;...
分类:其他好文   时间:2014-05-17 20:36:37    阅读次数:316
HDOJ 1005 Number Sequence
Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are t...
分类:其他好文   时间:2014-05-16 00:34:50    阅读次数:354
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!