上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页

2015年12月1日

HDUj2612(两个起点找到最近的目的地)

摘要: Find a way Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8642 Accepted Submission(s): 2784 Prob 阅读全文

posted @ 2015-12-01 18:10 vCoders 阅读(245) 评论(0) 推荐(0)

2015年11月29日

POJ3087(模拟)

摘要: #include"iostream"#include"string"#include"map"using namespace std;map mp;int main(){ int t; cin>>t; int test=0; while(++test>l; ... 阅读全文

posted @ 2015-11-29 22:31 vCoders 阅读(149) 评论(0) 推荐(0)

POJ 题目分类

摘要: OJ上的一些水题(可用来练手和增加自信)(poj1003,poj1004,poj1005,poj1207,poj3299,poj2159,poj2739,poj1083,poj2262,poj3006,poj2255,poj3094)初级:一.基本算法:(1)枚举. (poj1018,poj1753... 阅读全文

posted @ 2015-11-29 16:46 vCoders 阅读(135) 评论(0) 推荐(0)

POJ3126Prime Path(BFS)

摘要: #include"cstdio"#include"queue"#include"cstring"using namespace std;const int MAXN=10000;typedef pair P;int vis[MAXN];int s,e;bool prime(int x){ fo... 阅读全文

posted @ 2015-11-29 16:31 vCoders 阅读(226) 评论(0) 推荐(0)

搜索总结

摘要: dfs总结:①从确定的一组数中选若干个符合条件的数(选OR不选 均试一试) 例题:lanqiao李白打酒、vj简搜一棋盘问题②将确定的一组数生成全排列(+剪枝),求符合条件的全排列 例:hdu素数环、lanqiao带分数③从二维数组中找到符合条件的路径 例:poj滑雪、lanqiao剪格子适... 阅读全文

posted @ 2015-11-29 15:35 vCoders 阅读(121) 评论(0) 推荐(0)

2015年11月27日

virtual judge(专题一 简单搜索 E)

摘要: DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 a... 阅读全文

posted @ 2015-11-27 23:48 vCoders 阅读(262) 评论(0) 推荐(0)

virtual judge(专题一 简单搜索 C)

摘要: DescriptionFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN(0 ≤N≤ 100,000) on... 阅读全文

posted @ 2015-11-27 22:46 vCoders 阅读(451) 评论(0) 推荐(0)

virtual judge(专题一 简单搜索 B)

摘要: DescriptionYou are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled... 阅读全文

posted @ 2015-11-27 20:54 vCoders 阅读(314) 评论(0) 推荐(0)

virtual judge(专题一 简单搜索 A)

摘要: 问题描述:Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆放时任意的两个棋子不能放在棋盘中的同一行或者同一列,请编程求解对于给定形状和大小的棋盘,摆放k个棋子的所有可行的摆放方案C。Input输入含有多组测试数据。每组数据的第一行是两个正整数,n k... 阅读全文

posted @ 2015-11-27 20:52 vCoders 阅读(943) 评论(0) 推荐(0)

HDU1548(楼梯问题bfs)

摘要: #include"cstdio"#include"queue"#include"cstring"using namespace std;const int MAXN=205;typedef pair P;int N,A,B;int K[MAXN];int vis[MAXN];int bfs(){ ... 阅读全文

posted @ 2015-11-27 11:37 vCoders 阅读(419) 评论(0) 推荐(0)

上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 37 下一页

导航