- 博客(4)
- 收藏
- 关注
原创 poj 3669 bfs
#include <queue> #include <cstdio> #include <algorithm> #include <iostream> #include <cmath> #include <cstring> using namespace std; const int maxn = 305; const int inf = 0x3f3f3f3f; int mark[maxn][max
2017-07-12 21:25:10 300
转载 胡侃学习(理论)计算机【被大佬推荐,转载以膜拜】
《胡侃学习(理论)计算机》 作者: Sir (阿涩) 我也来冒充一回高手,谈谈学习计算机的一点个人体会。由于我是做理论的,所以先着重谈谈理论。 记得当年大一,刚上本科的时候,每周六课时数学分析,六课时高等代数,天天作业不断(那时是六日工作制)。颇有些同学惊呼走错了门:咱们这到底念的是什么系?不错,你没走错门,这就是(当时的)南大计算机系。系里的传统是培养做学术研究,尤其是
2017-07-12 13:48:52 3384
原创 poj 3009 dfs
#include <iostream> #include <cstdio> #include <cmath> #include <algorithm> #include <vector> #include <string> using namespace std; const int maxn = 25; const int inf = 0x3f3f3f3f; int n,m; int mark[m
2017-07-11 21:10:31 264
原创 POJ 2718 暴力
题意 给你一个0-9的串,挑其中一部分的数字排列成一个数,其它数字排列成一个数(两个数都不能有前导0) 问你这两个数差的绝对值最小是多少 思路 n很小,2-10,数字不会重复出现,直接暴力枚举即可 注意,不能复杂度过高,稍微有些技巧的就是两个数的位数应该尽可能接近,即都是n/2最好 所以枚举全排列,计算下在n/2的位置前后两个数差是几即可 #include <iostream> #include <
2017-07-11 08:48:43 237
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人