Problem Description
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the question: Suppose we have a matrix...
分类:
其他好文 时间:
2014-09-14 23:42:47
阅读次数:
342
Problem Description
DT is a big fan of digital products. He writes posts about technological products almost everyday in his blog.
But there is such few comments of his posts that he feels depress...
分类:
其他好文 时间:
2014-09-14 23:42:37
阅读次数:
193
Hive 常用命令...
分类:
其他好文 时间:
2014-09-14 23:42:27
阅读次数:
492
本系列主要参考《Unity Shaders and Effects Cookbook》一书(感谢原书作者),同时会加上一点个人理解或拓展。这里是本书所有的插图。这里是本书所需的代码和资源(当然你也可以从官网下载)。========================================== 分割线 ==========================================...
分类:
其他好文 时间:
2014-09-14 23:42:17
阅读次数:
390
Problem Description
Here is a game for two players. The rule of the game is described below:
● In the beginning of the game, there are a lot of piles of beads.
● Players take turns to play. E...
分类:
其他好文 时间:
2014-09-14 23:42:04
阅读次数:
231
好久之前一直有种困惑,感觉计算机编程很难,是一个跨不过的坎,特别是利用相应的算法解决某个问题,排序,二叉树,红黑树,哈希算法,KMP模式匹配,一些列问题,毫无头绪,现在想想确实只有当你遇到实际问题域模型的时候自然而然就会驱动你去寻找一种解决方案,首先你先以你自己的方法解决这个问题,而不考虑处在计算机的角度来思考,以我们人类特有的思维能力解决它,然后思考一下这个方案的可行性,比如是否能在一分钟,一个...
分类:
其他好文 时间:
2014-09-14 23:42:02
阅读次数:
222
Problem Description
There is a special number sequence which has n+1 integers. For each number in sequence, we have two rules:
● ai ∈ [0,n]
● ai ≠ aj( i ≠ j )
For sequence a and sequence b, t...
分类:
其他好文 时间:
2014-09-14 23:41:28
阅读次数:
262
题目链接
题意:出现Apple、iPod、iPhone、iPad时输出MAI MAI MAI!,出现Sony,输出SONY DAFA IS GOOD!
思路:水题,直接暴力求解
代码:
#include
#include
#include
#include
#include
using namespace std;
int main() {
s...
分类:
其他好文 时间:
2014-09-14 23:41:17
阅读次数:
217
zookeeper-3.4.5-cdh5.1.0 完全分布式安装...
分类:
其他好文 时间:
2014-09-14 23:40:57
阅读次数:
435
直接修改原本的目录暂时没找到办法,但可以通过挂载的方式在原有目录或新建目录改造
如:
[root@luozhonghua /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_luozhonghua-lv_root
...
分类:
其他好文 时间:
2014-09-14 23:40:47
阅读次数:
290
BFS爆搜
Dice
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 284 Accepted Submission(s): 166
Problem Description
There are 2 ...
分类:
其他好文 时间:
2014-09-14 23:40:37
阅读次数:
230
import java.util.Scanner;import java.util.Random;/***跟电脑玩石头剪刀布,需要从控制台输入信息,*然后去判断,然后给予反馈信息*/public class GuessFist{public static void main(String[] arg...
分类:
其他好文 时间:
2014-09-14 23:39:37
阅读次数:
253
一、自定义组件分类Customized Component:继承VIew ,增加更多的属性和事件。 横向扩展Compound Component:继承ViewGroup , 把多个简单控件通过布局拼装一个复合控件。横向扩展二、定义组件步骤1 选择继承类(肯定是View or View的子类).2 类...
分类:
其他好文 时间:
2014-09-14 23:39:27
阅读次数:
216
在java语言中,表达式表示值,语句表示执行动作。 例如:表达式1+1表示值;thread.start()表示执行动作。所有语法结构都有值,那怕是不存在用Unit.if/else语句有值,为跟在if或else之后的表达式的值。例:val s = if(x > 0) 1 else 0; 等同于var....
分类:
其他好文 时间:
2014-09-14 23:38:17
阅读次数:
199
INFO org.apache.hadoop.ipc.RPC: Server at localhost/127.0.0.1:9000 not available yet, Zzzzz...
分类:
其他好文 时间:
2014-09-14 23:38:07
阅读次数:
224
实现占空比为50%的N倍奇数分频:首先进行上升沿触发进行模N计数,计数到某一个值时进行输出时钟翻转,然后经过(N-1)/2再次进行翻转得到一个占空比非50%的奇数n分频时钟。再者 同时进行下降沿触发的模N计数,到和上升沿触发输出时钟翻转选定值相同值时,进行输出时钟时钟翻转,同样经过(N-1)/2时,...
分类:
其他好文 时间:
2014-09-14 23:37:47
阅读次数:
232
import java.util.Scanner;import java.util.Random;/***跟电脑玩石头剪刀布,需要从控制台输入信息,*然后去判断,然后给予反馈信息*/public class GuessFist{ public static void main(String[]...
分类:
其他好文 时间:
2014-09-14 23:37:27
阅读次数:
248