- 博客(12)
- 资源 (2)
- 收藏
- 关注
原创 HDU 2612 find the way 双向BFS
/*--------------------------------------------------------- stratege : BFS,对Y和M的位置,都进行广搜, 并且Y可以走到M的位置,M可以走 到Y的位置 Author :johnsondu Time : 2012.2.18 18:25-17:
2012-02-19 19:44:53 1106
原创 筛选法 求素数 一个数的所有因素和
/*--------------------------------------- 素数筛选法---------------------------------------*/#includeint x[20000000];int main(){ int temp, n, i; for( i = 0; i < 20000000; i ++ )
2012-02-15 18:52:34 909
原创 HDU 1286 找新朋友 数学之筛选法
/*-------------------------------------------------------------- 题意:找与n的公约数为1的所有小于n 大于0的个数 方法:筛选法,标记公约数大于1及其倍数的 数为1,以数组a ,进行存储。 时间:2012.2.15 Author: johnso
2012-02-15 16:34:07 1139
原创 HDU 1728 逃离迷宫 BFS(加转弯数)
#include #include #include #include #include #include using namespace std ;#define INF 0xfffffffstruct Node{ int x ; int y ; int turn ; //记录转弯处 int dir ; //记录方向,分别为0, 1,
2012-02-13 20:42:02 899
原创 HDU 1072 Nightmare BFS
/*---------------------------------------------- ACMer: Johnsondu Time: 19:45 - 20:13 2012.2.13 Stratege: BFS , 多开一个二维数组,进行存储当前 坐标所剩下的时间,好进行对比
2012-02-13 20:13:22 822
原创 HDU 2579 Dating with girls(2) BFS
/*--------------------------------------------- Time : 14:45-15:25 2012.2.13 Stratege : BFS (KeyPoint:定义一个三维数组,num[x][y][z] ; x, y用于存放当前所在的迷宫坐标,z用于存放所走过的 时间和题目
2012-02-13 15:27:27 958
原创 HDU 2102 A计划 BFS
/*--------------------------------------------------- ACMer : johnsondu Time : 21:20 - 21:55, 2012.2.12 stratege : easy BFS ***************************************************P
2012-02-12 21:59:04 821
原创 POJ 2251 Dungeon Master BFS
这题其实是一题简单的BFS,代码注释如下程序所示:/*----------------------------------------------------- Time : 19:00 - 19:53 2012.2.12 stratege : BFS Author : Johnsondu--------------------------------------------
2012-02-12 19:57:23 860
原创 HDU 4004 The Frog's Games
/*-------------------------------------------------------------- stratege : 二分查找 + 贪心 time :2012.2.8 20:43 -- 21: 23 URL : http://acm.hdu.edu.cn/showproblem.php?pid=4004********
2012-02-08 21:25:17 1056
原创 HDU 1241 Can you find it?
/*-------------------------------------------- stratege : 二分查找 basic step : int find (int min, int max, int x) // min是已排列的数组的下限,max为上限,x为所要查找的值 { int
2012-02-08 20:24:50 778
转载 康托展开 及其逆运算
转自morgan_xww :http://blog.csdn.net/morgan_xww/article/details/6275460康托展开:X=an*(n-1)!+an-1*(n-2)!+...+ai*(i-1)!+...+a2*1!+a1*0!ai为整数,并且0 应用实例:{1,2,3,4,...,n}的排列总共有n!种,将它们
2012-02-08 14:40:51 2682
Yann lecun(杨立昆)2014.7.9在北大关于deep learning的讲座 ppt
2014-07-11
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人