最新文章列表

hdu 1026 Ignatius and the Princess I

Ignatius and the Princess I Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 4313    Accepted Submission(s): 1348Special Judge Problem Descripti ...
gzhu_101majia 评论(0) 有881人浏览 2011-08-04 19:53

hdu 2102 A计划

A计划 Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4022    Accepted Submission(s): 911 Problem Description 可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她 ...
gzhu_101majia 评论(0) 有1104人浏览 2011-08-03 19:44

hdu 1242 Rescue(优先队列)

Rescue Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5846    Accepted Submission(s): 2168 Problem Description Angel was caught by the MOLIGP ...
gzhu_101majia 评论(1) 有3334人浏览 2011-08-02 21:45

hdu 1548 A strange lift(简单的bfs)

A strange lift Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3839    Accepted Submission(s): 1406 Problem Description There is a strange lif ...
gzhu_101majia 评论(1) 有4963人浏览 2011-08-02 21:34

hdu 1372 Knight Moves(最经典的bfs)

Knight Moves Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2136    Accepted Submission(s): 1354 Problem Description A friend of you is doing ...
gzhu_101majia 评论(0) 有1752人浏览 2011-08-02 21:24

【素数筛法求欧拉值前n项和】POJ 2478 Farey Sequence

http://poj.org/problem?id=2478 Sample Input 2 3 4 5 0 Sample Output 1 3 5 9 求的是:sum(n) = phi(1) + phi(2) + phi(3) + ... + phi(n); 更多欧拉函数的说明:http://972169909-qq-com.iteye.com/blog/1131309 #includ ...
基德KID.1412 评论(2) 有1242人浏览 2011-08-02 08:44

【哥种的第一棵线段树,至于你信不信,我反正信了】HDU 1754 I Hate It

http://acm.hdu.edu.cn/showproblem.php?pid=1754 Problem Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序,模拟老师的询问。当然,老师有时候需要更新某位同学的成绩。 Input 本题目包含多组测 ...
基德KID.1412 评论(0) 有1067人浏览 2011-07-31 18:45

hdu 1426 Sudoku Killer(dfs)

Sudoku Killer Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1271    Accepted Submission(s): 352 Problem Description 自从2006年3 ...
gzhu_101majia 评论(2) 有901人浏览 2011-07-31 16:47

hud 1175 连连看(dfs)

连连看 Time Limit: 20000/10000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5387    Accepted Submission(s): 1401 Problem Description “连连看” ...
gzhu_101majia 评论(0) 有935人浏览 2011-07-31 16:37

hdu 2553 N皇后问题 (经典的dfs)

N皇后问题 Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1757    Accepted Submission(s): 772   Problem Description 在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即 ...
gzhu_101majia 评论(3) 有5938人浏览 2011-07-31 11:49

hdu 1241 Oil Deposits (最经典的dfs)

  Oil Deposits Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3087    Accepted Submission(s): 1765 Problem Description The GeoSurvComp geolo ...
gzhu_101majia 评论(0) 有9538人浏览 2011-07-31 11:48

hdu 1258 Sum It Up

Sum It Up Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1099    Accepted Submission(s): 528 Problem Description Given a specified total t an ...
gzhu_101majia 评论(0) 有1128人浏览 2011-07-30 19:24

hdu 1010 Tempter of the Bone

Tempter of the Bone Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24023    Accepted Submission(s): 6616 Problem Description The doggie found ...
gzhu_101majia 评论(0) 有1143人浏览 2011-07-30 18:25

【TMD的陷阱题】HDU 2143 box

http://acm.hdu.edu.cn/showproblem.php?pid=2143 注意三点:①分母为0  ②要先判定整除性  ③数比较大,要用int64 #include <iostream> using namespace std; #define L __int64 bool isok (L a, L b, L c) { if (a + b = ...
基德KID.1412 评论(0) 有1480人浏览 2011-07-28 20:42

【二进制状态压缩+子集枚举/新增深搜】HDU 1557 权利指数

http://acm.hdu.edu.cn/showproblem.php?pid=1557 Problem Description 在选举问题中,总共有n个小团体,每个小团体拥有一定数量的选票数。如果其中m个小团体的票数和超过总票数的一半,则此组合为“获胜联盟”。n个团体可形成若干个获胜联盟。一个小团体要成为一个“关键加入者”的条件是:在其所在的获胜联盟中,如果缺少了这个小团体的加入,则此联盟 ...
基德KID.1412 评论(2) 有2052人浏览 2011-07-28 11:23

【大数类+重载运算符+映射】HDU 1316 How Many Fibs?

http://acm.hdu.edu.cn/showproblem.php?pid=1316 题意:给出a,b;求区间[a,b]内有多少个斐波那契数,其中a <= b <= 10^100 暂时我这个大数类只重载了加号,等于号,大于等于,小于等于 #include <iostream> #include <fstream> #include < ...
基德KID.1412 评论(0) 有1703人浏览 2011-07-26 22:46

【多边形重心/新增三角形叉积公式】HDU 1115 Lifting the Stone

http://acm.hdu.edu.cn/showproblem.php?pid=1115 题意:逆时针给出n个点,求这个n边形的重心 Sample Input 2 4 5 0 0 5 -5 0 0 -5 4 1 1 11 1 11 11 1 11 Sample Output 0.00 0.00 6.00 6.00 ...
基德KID.1412 评论(0) 有2434人浏览 2011-07-25 08:14

zoj 1025 Wooden Sticks

题目见:zoj 1025 先对木棒按照长度进行排序,然后再计算对应重量构成的数组中非递减子序列的个数。 相关代码(悲催的是该代码不能在poj1065 和hdoj1051 下通过,懒得看具体是什么原因了) /* zoj 1025 Wooden sticks */ #include <stdio.h> #include <stdlib.h> #include & ...
codePrac 评论(0) 有976人浏览 2011-07-23 20:25

最近博客热门TAG

Java(141746) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54918) .net(54785) Web(54513) 工作(54116) Linux(50906) Oracle(49876) 应用服务器(43288) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37268) 数据结构(36423)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics