####Median of Two Sorted Arrays >There are
two sorted arrays A and B of size m and n respectively. Find the median of the
two sorted arrays. The overa...
分类:
其他好文 时间:
2014-05-26 23:13:41
阅读次数:
265
如果是在代码中添加的形状,获取Shape.RenderedGeometry会出错。
这是由于WPF没有更新形状的原因,调用Shape.Arrange()后问题解决。
分类:
其他好文 时间:
2014-05-26 22:27:54
阅读次数:
399
1.数据挖掘是指从大量的数据中提取有用的知识信息的一种模式。(1)因为现在的生活工作中随时随刻都在产生大量的数据和都需要将这些数据转变为有用的信息和知识,是因为需求的不断增加才会突显出数据挖掘技术的重要性,所以数据挖掘应该是信息技术发展带来的结果。(2)数据挖掘应该是这些技术融合而不是简单的变革。(...
http://www.cnblogs.com/ChenYilonghttp://www.cnblogs.com/ChenYilong如果你用的是AFN/ASI,那得修改源代码了,因为AFN/ASI默认不支持“application/x-www-form-urlencoded;charset=utf-...
分类:
移动开发 时间:
2014-05-23 03:27:40
阅读次数:
631
判断二维字符串是否满足下面条件:
on both diagonals of the square paper all letters are the same;
all other squares of the paper (they are not on the diagonals) contain the same letter that is different from the...
分类:
其他好文 时间:
2014-05-23 02:21:01
阅读次数:
294
题目链接:hdu 4825 Xor Sum
题目大意:中文题。
解题思路:将给定得数按照二进制建成一颗字典树,每一层分别对应的各个位数上的01状态。然后每一次查询,如果对应位置为0,则要往1的方向走,如果是1,则要往0的方向走。但是要注意,走的前提是对应分支是存在的。
#include
#include
#include
using namespace std;
//type...
分类:
其他好文 时间:
2014-05-23 02:15:15
阅读次数:
286
自从省赛结束后,我就很少刷题了,虽然泡ACM不久,仅有一年多点,但是这已经是我的生活习惯了,有些东西不是说放弃就能放弃的,我想有可能我也想参加区预赛。
就算不能参加,我也不能放弃ACM,我决定每天早上早起来刷至少一题再弄其他,记得早起的时候要追溯到学习java的时光了……好啦,不废话了~
A题,签到题,看着样例都能过了。
/**********************************...
分类:
其他好文 时间:
2014-05-23 01:39:06
阅读次数:
225
题目链接:hdu 4824 Disk Schedule
题目大意:中文题。
解题思路:需要的时,很明显每到一层是要读取一次数据的,但是因为需要返回00,所以有些层的数据可以在返回的过程中读取会较优。于是转化成了双调欧几里得旅行商问题。
#include
#include
#include
#include
using namespace std;
const int N =...
分类:
其他好文 时间:
2014-05-23 00:00:02
阅读次数:
382
马上要去比赛了。
今天做了一下2014北京邀请赛,出了两道题目,感觉很水啊、、、
首先H题:
H. Happy Reversal
Time Limit: 1000ms
Case Time Limit: 1000ms
Memory Limit: 65536KB
64-bit integer IO format: %lld Java class name...
分类:
其他好文 时间:
2014-05-22 23:07:32
阅读次数:
417
题目链接:hdu 4826 Labyrinth
题目大意:中文题。
解题思路:不难想的递推,dp[i][j][0]从上面过来的情况,dp[i][j][1]从下面过来的情况,然后这两种情况都可以从前一列走过来。
#include
#include
#include
using namespace std;
const int N = 105;
const int INF = 0...
分类:
其他好文 时间:
2014-05-22 22:42:28
阅读次数:
350