码迷,mamicode.com
首页 > 其他好文
Notification Centers 通知中心
Notification Centers 通知中心 A notification center manages the sending and receiving of notifications. It notifies all observers of notifications meeting specific criteria. The notification infor...
分类:其他好文   时间:2015-06-02 23:31:53    阅读次数:502
hdu1848 Fibonacci again and again(SG函数博弈)
现在换是看不明白SG函数的求法什么的 暂时先当模板题吧 函数mex1就是求g(x) 然后异或 #include #include #include #include using namespace std; int k,fibo[100],f[10001]; int mex1(int p){ int i,t; bool g[101]={0}; for(i=0;i<k...
分类:其他好文   时间:2015-06-02 23:34:00    阅读次数:415
Solution to Triangle by Codility
question: https://codility.com/programmers/lessons/4 we need two parts to prove our solution. on one hand, there is no false triangular. Given the array has been sorted, if A[i]+A[i+1]>A[i+2]...
分类:其他好文   时间:2015-06-02 23:32:26    阅读次数:361
Solution of Codility
Solution of Codilitycodility.com is another great place to improve your programming skill. Train myself , and record here.Lesson 1: Time Complexity Lesson 2: Counting Elements Lesson 3: Prefix Sums...
分类:其他好文   时间:2015-06-02 23:30:49    阅读次数:247
[Servlet3.0新特性]注解替代配置文件
注解替代配置文件...
分类:其他好文   时间:2015-06-02 23:31:00    阅读次数:287
题目1003:A+B
题目描述: 给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。 现在请计算A+B的结果,并以正常形式输出。 输入: 输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9  输出: 请计算A+B的结果,并以正常形式输出,每组数据占一行。 样例输入: -234,567,890 123,456,7891,234 2,345,678 样例输出: ...
分类:其他好文   时间:2015-06-02 23:29:59    阅读次数:235
HDU1849 Rabbit and Grass()
用异或看取得的值是否为0判断 思想换没搞懂 #include int main() { int ans,n,a; while(scanf("%d",&n),n){ ans=0; while(n--){ scanf("%d",&a); ans=ans^a; } if(a...
分类:其他好文   时间:2015-06-02 23:30:45    阅读次数:157
hdu 1754 I Hate It 线段树 点修改
// hdu 1754 I Hate It 线段树 点修改 // // 不多说,裸的点修改 // // 继续练 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #inc...
分类:其他好文   时间:2015-06-02 23:29:39    阅读次数:149
[Servlet3.0]Servlet异步处理
异步处理...
分类:其他好文   时间:2015-06-02 23:29:21    阅读次数:169
[BI项目记]-搭建代码管理环境之签入代码
此篇主要介绍如何基于TFS环境创建进行BI项目最简单的代码签入和签出工作。...
分类:其他好文   时间:2015-06-02 23:32:14    阅读次数:215
[BI项目记]-对项目文件进行规划
BI项目中会有很多不同种类的项目,此篇会对这些项目进行一个总结,并且在TFS中进行分类。...
分类:其他好文   时间:2015-06-02 23:29:42    阅读次数:158
Junit使用过程中需要注意的诡异bug以及处理办法
在开发过程中我们有时会遇到狠多的问题和bug,对于在编译和运行过程中出现的问题很好解决,因为可以在错误日志中得到一定的错误提示信息,从而可以找到一些对应的解决办法。但是有时也会遇到一些比较诡异的问题和bug,没有任何的迹象,没有任何的提示它就过去了,但是我们的项目就受到影响运行不起来。别的我们先不说了,就说我在开发中使用的Junit的遇到的一个比较纠结的bug问题吧,这个问题的比较的诡异,困扰了我...
分类:其他好文   时间:2015-06-02 23:30:21    阅读次数:145
ViewPager实现页面切换
先贴出来效果图(切换每个Tab键,页面跟随变化,效果图蓝条增加用户体验) 首先看整体效果图的布局文件吧(很简单,就三部分,分别是Tab栏目、定位蓝条、各个页面(是V4包下的ViewPager)) activity_tab_winter_main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res...
分类:其他好文   时间:2015-06-02 23:31:10    阅读次数:201
uva 10791 Minimum Sum LCM
唯一分解定理...
分类:其他好文   时间:2015-06-02 23:29:08    阅读次数:169
Pascal's Triangle II
Given an index k, return the kth row of the Pascal's triangle. For example, given k = 3, Return [1,3,3,1]....
分类:其他好文   时间:2015-06-02 23:30:17    阅读次数:153
设计战斗剧情剧情(欢迎探讨)
需求:为已完成的战斗模块,增加一个新手引导,当条件成立时,激活事件。 根据策划给出的文案分析事件:主要是战斗过程中插入对话/引导 (1)战斗--对话--战斗 (2)战斗--指引操作--战斗 现在做的这个游戏类似刀塔传奇的横版闯关,引导中的我方英雄和敌方都是读取配置表,我想到2种方案: 1.观察角色的状态,当角色没血、或者能量值满、或者移动到某点触发事件。但是这样会在原本的逻辑代码...
分类:其他好文   时间:2015-06-02 23:29:35    阅读次数:241
浅析SecondaryNameNode,CheckpointNode,BackupNode,HA,Federation
一、SecondaryNameNodeSecondary NameNode不是NameNode的备份。它的作用是:定期合并fsimage与edits文件,并推送给NameNode,以及辅助恢复NameNode。 SNN的作用现在(Hadoop2.x)可以被两个节点替换CheckpointNode和BackupNode。 CheckpointNode可以理解为与Secondary NameNode...
分类:其他好文   时间:2015-06-02 23:27:56    阅读次数:3152
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!