Pebble solitaire is an interesting game. This is a game where you are given a board with an arrangement of small cavities, initially all but one occupied by a pebble each. The aim of the game is to re...
分类:
其他好文 时间:
2014-11-23 00:47:03
阅读次数:
196
3n+1问题
时间限制:1000 ms | 内存限制:65535 KB
难度:0
描述
对于任意大于一的自然数n,若n为奇数,则将n变为3n+1,否则变为n的一半,经过若干次这样的变换,一定会使n变为1.求输出变换的次数,注 要求次数要对3取余;例如3->10->5->16->8->4->2->1 变换了7次,对3取余的1; n9
输入测试数...
分类:
其他好文 时间:
2014-11-23 00:43:56
阅读次数:
179
Screeching tires. Searching lights. Wailing sirens. Police cars everywhere. Trisha Quickfinger did it again! Stealing the `Mona Lisa' had been more difficult than planned, but being the world's best a...
分类:
其他好文 时间:
2014-11-23 00:45:42
阅读次数:
151
二进制转化,求最大曼哈顿距离....
Hyperspace
Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 1123 Accepted Submission(s): 530
Problem D...
分类:
其他好文 时间:
2014-11-23 00:44:14
阅读次数:
238
优先队列构造前两列....
Backup Plan
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others)
Total Submission(s): 775 Accepted Submission(s): 365
Special Judge
Problem...
分类:
其他好文 时间:
2014-11-23 00:45:42
阅读次数:
169
1、什么是socket
Socket是应用层与TCP/IP协议族通信的中间抽象层,它是一组接口,应用层通过调用这些接口实现发送和接收数据。一般这种抽象层由操作系统提供或者由JVM自己实现。使用socket可以简单地实现应用程序在网络上得通信,一台机器上的应用想socket写入信息,另外一台相连的机器能读取到。TCP/IP协议族中分两种socket类型,分别是流套接字和数据报套接字,分别对应TCP...
分类:
其他好文 时间:
2014-11-23 00:46:10
阅读次数:
325
Problem Description
A balanced number is a non-negative integer that can be balanced if a pivot is placed at some digit. More specifically, imagine each digit as a box with weight indicated by the ...
分类:
其他好文 时间:
2014-11-23 00:44:31
阅读次数:
244
The 3n + 1 problem
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive)....
分类:
其他好文 时间:
2014-11-23 00:42:44
阅读次数:
219
代码地址:https://github.com/Jimmy-Shi/bean-query/tree/bean-query-1.1.1
修改内容:
简化用户自定义转换
例子:
List bookNames=select(new DefaultSelector() {
@Override
public String select(Object item)...
分类:
其他好文 时间:
2014-11-23 00:44:34
阅读次数:
228
题目链接:...
分类:
其他好文 时间:
2014-11-23 00:42:25
阅读次数:
187
本文转载至http://www.cocoachina.com/ios/20141110/10177.htmliOS开发自定义刷新CBStoreHouseRefres介绍这是一款在Storehouse启发下创作出来的控件,下拉刷新的时候可以完全定制自己想要的效果。来看效果图:通过plist文件你可以使...
分类:
其他好文 时间:
2014-11-23 00:41:06
阅读次数:
313
如何优化内存使用内存优化原理为优化应用内存使用,开发人员首先应该知道什么最耗应用内存,答案就是纹理! 纹理几乎会占据90%应用内存。所以尽量最小化应用的纹理内存使用,否则应用很有可能会因为低内存而崩溃。 本文介绍Cocos2d-x游戏通用的两条内存优化原理指导。认识瓶颈寻找方案什么样的纹理最耗应用内...
分类:
其他好文 时间:
2014-11-23 00:42:12
阅读次数:
238
这周继续在弄hybird app 的 UI框架的重构,进行到了编写换肤功能的阶段,而在做换肤之前,我想应该先弄一套框架内置的图标。而图标无非就是两种做法:1.图片使用图片很正常,但是有缺陷的。1.众多的图标导致了增加了许多HTTP请求 PS:有人会说我把它们弄成一张大图不久行了,可是这样弄了之后,你...
分类:
其他好文 时间:
2014-11-23 00:38:29
阅读次数:
195
1 //LCS模板,求长度,并记录子串 2 //亦可使用注释掉的那些代码,但所用空间会变大 3 #include 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 #define N 500510 11 int....
分类:
其他好文 时间:
2014-11-23 00:40:48
阅读次数:
175
Common SubsequenceTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24312Accepted Submission(s): 107...
分类:
其他好文 时间:
2014-11-23 00:40:19
阅读次数:
202
Sum of Consecutive Prime NumbersTime Limit:1000MSMemory Limit:65536KTotal Submissions:19697Accepted:10800DescriptionSome positive integers can be repr...
分类:
其他好文 时间:
2014-11-23 00:38:40
阅读次数:
188
Tempter of the BoneTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 73911Accepted Submission(s): 20...
分类:
其他好文 时间:
2014-11-23 00:39:37
阅读次数:
277