E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Ignatius
HDU 1026
Ignatius
and the Princess I(BFS)
题目链接 复杂啊,这到底是模拟题还是BFS啊。。。。数组开小RE一次,2Y。。。调试了好久啊。 1 #include <stdio.h> 2 #include <string.h> 3 #define N 1000001 4 char p[101][101]; 5 int o[101][101],key[101][101];// key标记
·
2015-11-11 10:18
HDU
HDOJ HDU 1028
Ignatius
and the Princess III ACM 1028 IN HDU
//MiYu原创, 转帖请注明 : 转载自 ______________白白の屋 题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1028 标准的母函数题目 ,很基础, 可以直接使用模板, 不过敲代码也用不了多长时间,建议手打,加深记忆. 代码如下 : //MiYu原创, 转帖请注明 : 转载自 _____
·
2015-11-11 07:30
ACM
hdu---------(1026)
Ignatius
and the Princess I(bfs+dfs)
Ignatius
and the Princess I Time Limit: 2000/1000 MS (Java/Others) Memory Limit
·
2015-11-11 02:37
HDU
HDU 1029
Ignatius
and the Princess IV
Ignatius
and the Princess IV Time Limit: 2000/1000 MS (Java/Others) Memory Limit
·
2015-11-11 01:52
HDU
hdu 1028
Ignatius
and the Princess III(DP)
Ignatius
and the Princess III Time Limit: 2000/1000 MS (Java/Others) Memory Limit:
·
2015-11-11 00:04
HDU
Ignatius
's puzzle
问题陈述: HDOJ Problem - 1098 问题解析: 数学归纳法 f(1) = 18 + ka; 假设f(x) = 5*x^13+13*x^5+k*a*x 能被65整除 f(x+1) = 5*(x+1)^13+13*(x+1)^5+k*a*(x+1) 根据二项式定理展开 (a+b)^n = C(n,0)*a^n*
·
2015-11-10 22:35
NAT
HDU 1026
Ignatius
and the Princess I (BFS)
题目链接 题意 : 从(0,0)点走到(N-1,M-1)点,问最少时间。 思路 : BFS、、、、、 1 #include <stdio.h> 2 #include <string.h> 3 #include <queue> 4 #include <iostream> 5 6 using namespace st
·
2015-11-10 21:57
HDU
HDOJ 1024 Max Sum Plus Plus -- 动态规划
pid=1024 Problem Description Now I think you have got an AC in
Ignatius
.L's "Max Sum"
·
2015-11-10 21:21
动态规划
hdu 1028
Ignatius
and the Princess III
AuthorIgnatius.L下面解答copy以下链接(并非本人想出来的):http://blog.163.com/lyt9469@126/blog/static/17044235820108203120482/该解答很好、很强大/(^o^)/~参考解答:源代码及简单分析: 把加法变为幂运算 这里先给出2个例子,等会再结合题目分析: 第一种: 有1克、2克
·
2015-11-09 12:50
HDU
HDU 1098 HDOJ 1098
Ignatius
's puzzle ACM 1098 IN HDU
MiYu原创, 转帖请注明 : 转载自 ______________白白の屋 题目地址: http://acm.hdu.edu.cn/showproblem.php?pid=1098 题目分析:
·
2015-11-09 11:00
ACM
HDU 1029
Ignatius
and the Princess IV
题目地址:点击打开链接思路:水题,求一个由n个数组成的数组种至少出现(n+1)/2次的数AC代码:#include #include inta[500000]; intmain() { intn,i,j,b,k; while(scanf("%d",&n)!=EOF) { memset(a,0,sizeof(a)); for(i=0;i
qq_25605637
·
2015-11-08 22:00
HDU 1027
Ignatius
and the Princess II(求由1-n组成按字典序排序的第m个序列)
题目地址:点击打开链接思路:用STL里的函数即可,暴力换一下也可AC代码:#include #include usingnamespacestd; intmain() { intm,n,a[1001],i,sum; while(cin>>m>>n) { sum=0; for(i=0;i
qq_25605637
·
2015-11-08 22:00
Text Reverse
Description
Ignatius
likes to write words in reverse way.
·
2015-11-08 15:15
text
hdu 1026
Ignatius
and the Princess I 搜索,输出路径
Ignatius
and the Princess I Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536
·
2015-11-08 15:55
HDU
hdu1251(字典树)
K (Java/Others) Total Submission(s): 14730 Accepted Submission(s): 6347 Problem Description
Ignatius
·
2015-11-08 14:33
HDU
Hdu 1098
Ignatius
's puzzle
1、一开始读题,65|f(x)是什么意思都不清楚,最后百度才知道是f(x)能被65整除。 2、而且写这题完全没有思路,数论不好,我是根据网上的思路写的。 思路:则f(x+1 ) = f (x) + 5*( (13 1 ) x^12 ...... .....+(13 13) x^0 )+ 13*( (5&nb
·
2015-11-08 11:14
HDU
HDU 1026
Ignatius
and the Princess I(BFS+优先队列)
Ignatius
and the Princess I Time Limit:1000MS Memory Limit:32768KB  
·
2015-11-07 15:31
优先队列
hdu 1029
Ignatius
and the Princess IV
pid=1029
Ignatius
and the Princess IV Description OK, you are not too bad, em...
·
2015-11-07 15:39
HDU
A hard puzzle 1097
Problem Description lcy gives a hard puzzle to feng5166,lwg,JGShining and
Ignatius
: gave a and b,how
·
2015-11-07 13:47
HA
CDZSC_2015寒假新人(1)——基础 h
Description
Ignatius
was born in a leap year, so he want to know when he could hold his birthday party
·
2015-11-07 11:51
基础
CDZSC_2015寒假新人(1)——基础 g
Description
Ignatius
likes to write words in reverse way.
·
2015-11-07 11:50
基础
hdu 1213 How Many Tables
pid=1213 How Many Tables Description Today is
Ignatius
' birthday. He invites a lot of friends.
·
2015-11-07 10:18
table
hdu 1023 Train Problem II
pid=1212 Train Problem II Description As we all know the Train Problem I, the boss of the
Ignatius
Train
·
2015-11-07 10:01
HDU
HDOJ1028(
Ignatius
and the Princess III)
Ignatius
and the Princess III Time Limit: 2000/1000 MS (Java/Others) Memory Limit
·
2015-11-05 08:01
NAT
HDOJ1026(
Ignatius
and the Princess I)
Ignatius
and the Princess I Time Limit: 2000/1000 MS (Java/Others) Memory Limit
·
2015-11-05 08:50
NAT
hdu 1429 胜利大逃亡(续)
pid=1429 胜利大逃亡(续) Description
Ignatius
再次被魔王抓走了(搞不懂他咋这么讨魔王喜欢)……这次魔王汲取了上次的教训,把
Ignatius
关在一个
·
2015-11-03 22:50
HDU
hdu 1026
Ignatius
and the Princess I
pid=1026
Ignatius
and the Princess I Description The Princess has been abducted by the BEelzebub feng5166
·
2015-11-03 22:32
HDU
Train Problem I(HDU1022)
As the new term comes, the
Ignatius
Train Station is very busy nowadays.
·
2015-11-03 22:52
HDU
HDU 1026
Ignatius
and the Princess I(BFS+优先队列+路径记录)
题目地址:点击打开链接题意:小明要从一个矩阵的(0,0)点到(n-1,m-1)点问最少花费多少时间到达,.:TheplacewhereIgnatiuscanwalkon.X:Theplaceisatrap,Ignatiusshouldnotwalkonit.n:HereisamonsterwithnHP(1 #include #include #include #include #include
qq_25605637
·
2015-11-03 21:00
基础专题
1.hdu 1028
Ignatius
and the Princess III 整数划分 1 #include<stdio.h> 2 __int64 dp
·
2015-11-03 21:22
基础
Doing Homework again
题目描述
Ignatius
has just come back school from the 30th ACM/ICPC.
·
2015-11-02 19:24
home
hdu 1023 Train Problem II 解题报告
pid=1023 Problem Description As we all know the Train Problem I, the boss of the
Ignatius
Train
·
2015-11-02 19:52
HDU
Hdu 1029
Ignatius
and the Princess IV
卡特兰数的模拟。 CODE: #include <stdio.h> #include <stdlib.h> #include < string.h> #include <math.h> using namespace std; #define MAX&nb
·
2015-11-02 18:28
HDU
Hdu 1026
Ignatius
and the Princess I
典型的BFS加状态的问题,题目很好理解,只不过打印路径这里困扰了我许久。不过经过不懈的努力终于AC了。 泪奔。。 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1026 存在的问题:1、这道BFS可以不需要做标记,而我之前从来没接触过,所以理解起来较慢。2、遇到了打印路径的题就懵了,怎么去打印路径困扰了很久。3、老问题,BFS和DFS
·
2015-11-02 18:47
HDU
母函数题目
hdu 1028
Ignatius
and the Princess III 母函数模板题 http://acm.hdu.edu.cn/showproblem.php?
·
2015-11-02 15:53
函数
HDU 1242 Rescue
简单变形的广搜,而HDU 1026
Ignatius
and the Princess I 是这道题的升级版,因为每个格子停留的时间可能不相同。
·
2015-11-02 11:17
HDU
HDU 1026
Ignatius
and the Princess I
广搜的一个简单变形,思路还是一样的,依旧是维护一个队列,将一个节点不断的扩展,扩展完后出队。 这道题还有两个特点就是:可能遇到怪兽,因此需要额外花费n秒的时间来打败它。 最终还要输出路径。 因此结构体里面prex 和 prey就是来记录下一个格子的坐标的。 因为有了怪兽所以我们不能一搜到起点就退出搜索,因为可能存在其他更快的路径,所以要全部搜完。 1 //#d
·
2015-11-02 11:16
HDU
HDU_1253——胜利大逃亡,三围空间BFS
Problem Description
Ignatius
被魔王抓走了,有一天魔王出差去了,这可是
Ignatius
逃亡的好机会.
·
2015-11-02 10:59
HDU
The area
Problem Description
Ignatius
bought a land last week, but he didn't know the area of the
·
2015-11-02 10:31
r
hdu 1026
Ignatius
and the Princess I
hdu 1026
Ignatius
and the Princess I //hdu 1026
Ignatius
and the Princess I //广搜 #include
·
2015-11-02 09:05
HDU
hdu 1098
Ignatius
's puzzle(数学归纳法证题)
http://acm.hdu.edu.cn/showproblem.php?pid=1098 题意就是,输入k,然后求对于任意的x,使f(x)能被65整除时,最小的a; 数学归纳法证明: f(x)=5*x^13+13*x^5+k*a*x 第一步:f(0)=0;成立: 第二步:假设f(x)能被65整除,则有5*x^13+13*x^5+k*a*x能被65整出; 第三步:则f(x+1)=5*
·
2015-11-01 14:34
HDU
hdu 1026
Ignatius
and the Princess I(bfs+优先队列)
http://acm.hdu.edu.cn/showproblem.php?pid=1026 才开始自己不清楚什么优先队列,就是直接从终点出发搜索直到找到出发点,记录最近。结果wa很多次,最后问了一下被人,才发现,最短的时间不是单调的每一步还要加上打怪的时间,yy了一下只要在每次出队列之前从小到大排一下队列里面的元素就行了啊。可是我的编码能力可能别太弱了结果没实现,于是就学习了stl中的优先队列
·
2015-11-01 14:25
优先队列
HDU1022:Train Problem I
Problem Description As the new term comes, the
Ignatius
Train Station is very busy nowadays.
·
2015-11-01 13:53
HDU
HDU_1071——积分求面积,抛物线顶点公式
Problem Description
Ignatius
bought a land last week, but he didn't know the area of the land because
·
2015-11-01 13:49
HDU
(HDOJ 1022)Train Problem I
Train Problem I Problem Description As the new term comes, the
Ignatius
Train Station is very
·
2015-11-01 11:14
in
HDU 1028
Ignatius
and the Princess III伊格和公主III(AC代码)母函数
本题听说可用递推、DP等方法来做,但是此题是母函数的入门经典喔~所以我用了母函数 1 #include <iostream> 2 #define N 120 3 using namespace std; 4 int ans[N+1],sup[N+1];//ans保存答案,sup保存临时值 5 void main() 6 { 7
·
2015-11-01 10:36
HDU
zjfc----1076 online judge 对多行字符串输入做处理
题目描述
Ignatius
is building an Online Judge, now he has worked out all the problems except the Judge
·
2015-11-01 09:43
online
hdoj--1028--
Ignatius
and the Princess III(母函数)
IgnatiusandthePrincessIIITimeLimit:2000/1000MS(Java/Others) MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):16242 AcceptedSubmission(s):11445ProblemDescription"Well,itseemsthefirstproble
qq_29963431
·
2015-10-31 22:00
hdu 1028
Ignatius
and the Princess III 完全背包
这题以前是母函数做的,今天看了DD的背包九讲,该用背包模型做。 这题是完全背包。设dp[i][v] 为用前i个数组成v的方案数,状态方程如下:dp[i][v] = sum(dp[i-1][v-k*i]) #include <iostream>
·
2015-10-31 19:18
HDU
hdu1026
Ignatius
and the Princess I (优先队列 BFS)
Problem Description The Princess has been abducted by the BEelzebub feng5166, our hero
Ignatius
has
·
2015-10-31 18:37
优先队列
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他