Problem Description 给定一个m × n (m行,
n列)的迷宫,迷宫中有两个位置,gloria想从迷宫的一个位置走到另外一个位置,当然迷宫中有些地方是空地,gloria可以穿越,有些地方是障碍,她必须绕行,从迷宫的一个位置,只能走到与它相邻的4个位置中,当然在行走过程中,glo....
分类:
其他好文 时间:
2014-06-07 02:57:41
阅读次数:
276
最近升级cdh版本,从4.5 升级到 5.0.0 beta-2
但是升级后,发现/etc/alternatives 路径下的软链接还是只想旧的4.5 版本,而且hadoop环境也是沿用4.5
的版本conf,导致hive不能正常使用,报错为hdfs 的版本不对。 后面使用strace工具查看,发现它...
分类:
其他好文 时间:
2014-06-07 02:44:21
阅读次数:
248
Validate if a given string is numeric.Some
examples:"0"=>true" 0.1 "=>true"abc"=>false"1
a"=>false"2e10"=>trueNote:It is intended for the problem stat...
分类:
其他好文 时间:
2014-06-04 20:54:02
阅读次数:
326
Then-queens puzzle is the problem of
placingnqueens on ann×nchessboard such that no two queens attack each
other.Given an integern, return all distinc...
分类:
其他好文 时间:
2014-06-04 20:00:47
阅读次数:
206
http://poj.org/problem?id=3270这道题就是给你一个无序序列转换成有序序列需要花费的代价最小,交换a和b代价为a+b; 1
#include 2 #include 3 #include 4 #define maxn 20000 5 using namespace st...
分类:
其他好文 时间:
2014-06-03 13:14:32
阅读次数:
272
uva11624:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2671题意:一个大火蔓延的迷宫。Joe每分钟可以走到上下左右4个方...
分类:
其他好文 时间:
2014-05-30 03:18:05
阅读次数:
296
http://ubuntuforums.org/archive/index.php/t-1771058.htmlI
accidentally discovered a fix for this while trying to solve a different
problem.edit~/.conf...
分类:
其他好文 时间:
2014-05-29 15:00:26
阅读次数:
623
题目链接:http://acm.bnu.edu.cn/bnuoj/problem_show.php?pid=34985题目大意:问n长度的串用0~k的数字去填,有多少个串保证任意子串中不包含0~k的某一个全排列邀请赛上A的较多的一道题,比赛的时候死活想不出,回来之后突然就想通了,简直.....
= ...
分类:
其他好文 时间:
2014-05-28 18:38:04
阅读次数:
327
Problem
Description给你一个n*n的格子的棋盘,每个格子里面有一个非负数。从中取出若干个数,使得任意的两个数所在的格子没有公共边,就是说所取的数所在的2个格子不能相邻,并且取出的数的和最大。Input包括多个测试实例,每个测试实例包括一个整数n
和n*n个非负数(n 2 #inc....
分类:
其他好文 时间:
2014-05-28 16:40:44
阅读次数:
252
使用这个功能时,遇到几个问题: 1. 当点击library时,ie报错:A problem
with this webpage caused Internet Explorer to close and reopen the tab
解决方法:使用Internet Explorer (No Add-...
分类:
其他好文 时间:
2014-05-28 16:17:47
阅读次数:
536