Red and Black
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 22300
Accepted: 12041
Description
There is a rectangular room, covered with square tiles. Each ...
分类:
其他好文 时间:
2014-08-04 21:30:48
阅读次数:
263
FatMouse and Cheese
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4811 Accepted Submission(s): 1945
Problem Description
FatMou...
分类:
其他好文 时间:
2014-08-04 17:59:07
阅读次数:
230
Fire Net
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 6285 Accepted Submission(s): 3552
Problem Description
Suppose that we h...
分类:
Web程序 时间:
2014-08-04 17:39:08
阅读次数:
300
1、关闭集群 2、通过修改core-site.xml ??<property>
????<name>fs.checkpoint.period</name>
????<value>180</value><!--单位为秒-->
??</property>
??<property>
????<name>fs.checkpoint.d...
分类:
其他好文 时间:
2014-08-04 14:48:57
阅读次数:
202
Watchcow
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 5964
Accepted: 2561
Special Judge
Description
Bessie's been appointed the new watch-cow for ...
分类:
其他好文 时间:
2014-08-04 14:22:57
阅读次数:
197
/** POJ 2488* DFS进行遍历就好,记录走过的路径,只要不重复地走过p*q个方格就行了(结束条件) */#include #include #include using namespace std;const int Max = 30; int kase;int p,q;int vis[...
分类:
其他好文 时间:
2014-08-04 14:00:37
阅读次数:
175
Problem Description
In order to understand early civilizations, archaeologists often study texts written in ancient languages. One such language, used in Egypt more than 3000 years ago, is based on c...
分类:
其他好文 时间:
2014-08-04 11:03:57
阅读次数:
235
题目链接;uva 12253 - Simple Encryption
题目大意:给定K1,求一个12位的K2,使得KK21=K2%1012
解题思路:按位枚举,不且借用用快速幂取模判断结果。
#include
#include
#include
using namespace std;
typedef long long ll;
const ll ite=(120)-1;
...
分类:
其他好文 时间:
2014-08-04 11:02:57
阅读次数:
194
图的遍历也称为搜索,就是从图中某个顶点出发,沿着一些边遍历图中所有的顶点,且每个顶点仅被访问一次,遍历可采取两种不同的方式:深度优先搜索(DFS)和广度优先搜索(BFS)。1.DFS算法思想` 从顶点v出发深度遍历图G的算法 ① 访问v0顶点,置vis[v0]=1,搜索v0未被访问的邻接点w,若.....
分类:
其他好文 时间:
2014-08-04 10:30:47
阅读次数:
305
题目:uva10285 - Longest Run on a Snowboard(记忆化搜索)
题目大意:给出N * N的矩阵,要求找到一条路径,路径上的值是递减的,求这样的路径的最长长度。
解题思路:记忆话搜索。因为要求最长的路径那么就需要将所有的这样的路径找出,但是直接dfs会超时的。对于同一个位置,从这个点出发的最长路径长度是固定的。所以在找的时候就要将这个位置的最长路径...
分类:
其他好文 时间:
2014-08-03 23:29:06
阅读次数:
299