DescriptionThere are n houses in the village and
some bidirectional roads connecting them. Every day peole always like to ask
like this "How far is it...
分类:
其他好文 时间:
2014-05-25 22:47:22
阅读次数:
283
getApplicationContext()Application context is
associated with the Applicaition and will always be the same throughout the life
cycle.getBasecontext()s...
分类:
移动开发 时间:
2014-05-24 09:23:43
阅读次数:
249
/*Swimming时间限制:1000ms |
内存限制:65535KB难度:1描述Peipei likes swimming. Strange that he always swims from a
coner to the counter corner inthe way bellow(that...
分类:
其他好文 时间:
2014-05-22 14:14:27
阅读次数:
291
Problem Description
Alice and Bob always love to play games, so does this time.
It is their favorite stone-taken game.
However, this time they does not compete but co-operate to finish this tas...
分类:
其他好文 时间:
2014-05-22 11:15:07
阅读次数:
242
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:
get and set.
get(key) - Get the value (will always be positive) of the key if t...
分类:
其他好文 时间:
2014-05-22 07:25:32
阅读次数:
254
Problem Description
As we know, Big Number is always troublesome. But it's really important in our ACM. And today, your task is to write a program to calculate A mod B.
To make the problem easie...
分类:
其他好文 时间:
2014-05-20 14:42:07
阅读次数:
324
Problem Description
GG is some what afraid of his MM. Once his MM asks, he will always try his best to rush to their home.
Obvious, he can run home in straight line directly. Alternatively, he ca...
分类:
其他好文 时间:
2014-05-18 07:28:10
阅读次数:
268
详细的证明:点击打开链接
我的想法:
要想保证题目所说 构造最小行的和,只能是这种情况
..... m-3 m-2 m-1 m | m m-1 m-2 m-3 . ....
所以Ans 也就是取前N项就可。
又因为 It is guaranteed that N is always odd。 显然构造没问题。
#include
#in...
分类:
其他好文 时间:
2014-05-15 06:28:56
阅读次数:
200
物理机上的文件夹或盘符直接挂载到虚拟机上使用。VM--SettingsOptions--SharedFolders--勾选Alwaysenabled,勾选MapasanetworkdriveinWindowsguests在点击下面的添加来添加共享的文件夹选择路径可以看到虚拟机中的共享文件夹已经出现在Windows中了
分类:
其他好文 时间:
2014-05-14 17:03:58
阅读次数:
352
参考了 《Altera FPGA/CPLD 设计》高级篇,
关于状态机的推荐写法实现的功能是一样的但是编译使用的逻辑门如下图:下图是我自己编的状态机需要的逻辑:下图是使用推荐的有限状态机后,编译消耗的资源:总结:推荐的有限状态机,分为2个always
块。 一个用于控制状态的转移,一个用于当前状态的...
分类:
其他好文 时间:
2014-05-09 03:20:03
阅读次数:
378