博客园 首页 私信博主 显示目录 隐藏目录 管理
摘要: HDU 1241 Oil DepositsL -DFSTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionThe GeoSurvComp geologic survey com... 阅读全文
posted @ 2015-07-28 16:31 hfcnal 阅读(615) 评论(0) 推荐(1) 编辑
摘要: HDOJ-1799 - Fighting_DreamM -暴力求解、打表Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription我们知道,在编程中,我们时常... 阅读全文
posted @ 2015-07-28 09:34 hfcnal 阅读(395) 评论(0) 推荐(1) 编辑
摘要: hdu 2524N -暴力求解、打表Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription给你一个高为n ,宽为m列的网格,计算出这个网格中有多少个矩形,下图为高为2,宽为4的网格.In... 阅读全文
posted @ 2015-07-27 21:47 hfcnal 阅读(357) 评论(0) 推荐(1) 编辑
摘要: uva 725 Division(除法)A -暴力求解Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionWrite a program that finds and displays a... 阅读全文
posted @ 2015-07-27 21:21 hfcnal 阅读(1335) 评论(0) 推荐(1) 编辑
摘要: UVA - 524 Prime Ring ProblemTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionA ring is composed of n (even number) circ... 阅读全文
posted @ 2015-07-27 19:01 hfcnal 阅读(3340) 评论(0) 推荐(4) 编辑
摘要: 回溯法,只需要判断当前串的后缀,而不是所有的子串#include#includeusing namespace std;int s[1000];int n,l,cnt;int bfs(int cur){ if(cnt++==n) { for(int i=0; i>n>>l&... 阅读全文
posted @ 2015-07-27 15:05 hfcnal 阅读(275) 评论(0) 推荐(1) 编辑
摘要: Ice CaveTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionYou play a computer game. Your character stands on ... 阅读全文
posted @ 2015-07-25 17:02 hfcnal 阅读(786) 评论(0) 推荐(1) 编辑
摘要: A Currency System in GeraldionTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionA magic island Geraldion, where Ger... 阅读全文
posted @ 2015-07-25 14:45 hfcnal 阅读(373) 评论(0) 推荐(0) 编辑
摘要: poj2255二叉树遍历Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionLittle Valentine liked playing with binary trees very much... 阅读全文
posted @ 2015-07-23 21:26 hfcnal 阅读(788) 评论(0) 推荐(2) 编辑
摘要: UVA1600PatrolRobotTime Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionA robot has to patrol around a rectangular area which... 阅读全文
posted @ 2015-07-23 12:15 hfcnal 阅读(518) 评论(0) 推荐(1) 编辑
摘要: HDU1372:Knight Moves(BFS)Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionA friend of you is doing research ... 阅读全文
posted @ 2015-07-22 20:56 hfcnal 阅读(1479) 评论(0) 推荐(1) 编辑
摘要: DFSTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription在N*N的方格棋盘放置了N个皇后,使得它们不相互攻击(即任意2个皇后不允许处在同一排,同一列,也不允许处在与棋盘边框成45角的斜线上。你的任... 阅读全文
posted @ 2015-07-22 17:24 hfcnal 阅读(745) 评论(0) 推荐(1) 编辑
摘要: HDU 1312:Red and BlackTime Limit:1000MSMemory Limit:30000KB64bit IO Format:%I64d & %I64uDescriptionThere is a rectangular room, covered with sq... 阅读全文
posted @ 2015-07-22 11:37 hfcnal 阅读(560) 评论(1) 推荐(1) 编辑
摘要: UVA 572 DFS(floodfill) 用DFS求连通块Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uDescriptionDue to recent rains, water has pooled in ... 阅读全文
posted @ 2015-07-22 08:26 hfcnal 阅读(1081) 评论(0) 推荐(1) 编辑
摘要: HDU1276Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription某部队进行新兵队列训练,将新兵从一开始按顺序依次编号,并排成一行横队,训练的规则如下:从头开始一至二报数,凡报... 阅读全文
posted @ 2015-07-21 17:30 hfcnal 阅读(1371) 评论(0) 推荐(1) 编辑
摘要: PQJ 1686(栈栈栈)用栈解决问题Time Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionA math instructor is too lazy to grade a qu... 阅读全文
posted @ 2015-07-21 10:06 hfcnal 阅读(335) 评论(0) 推荐(2) 编辑
摘要: CodeForces 546C Soldier and CardsTime Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionTwo bored soldiers are playing card ... 阅读全文
posted @ 2015-07-20 19:17 hfcnal 阅读(513) 评论(0) 推荐(1) 编辑
摘要: 栈Time Limit:3000MSMemory Limit:0KB64bit IO Format:%lld & %lluDescriptionYou are given a string consisting of parentheses()and[]. A string of this type... 阅读全文
posted @ 2015-07-20 14:57 hfcnal 阅读(1883) 评论(0) 推荐(1) 编辑
摘要: 12100 Printer Queue12 The only printer in the computer science students’ union is experiencing an extremely heavy workload. Sometimes there are a hund... 阅读全文
posted @ 2015-07-19 21:19 hfcnal 阅读(588) 评论(0) 推荐(1) 编辑
摘要: POJ1700题目链接:http://poj.org/problem?id=1700Time Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionA group of N people ... 阅读全文
posted @ 2015-07-19 18:52 hfcnal 阅读(840) 评论(0) 推荐(1) 编辑