Problem Description
Kingdom Rush is a popular TD game, in which you should build some towers to protect your kingdom from monsters. And now another wave of monsters is coming and you need again to ...
分类:
其他 时间:
2014-08-20 14:08:52
收藏:
0 评论:
0 赞:
0 阅读:
418
先上图
LEDView效果如图所示。
之前看到一篇博客使用两个TextView实现了该效果,于是我想用自定义控件的方式实现一个LEDView,使用时即可直接使用该控件。
采用组合控件的方式,将两个TextView叠放在一起,再使用digital-7.ttf字体来显示数据,从而达到LED的效果。代码如下:
LEDView.class
package ione.zy.demo;
imp...
分类:
移动平台 时间:
2014-08-20 14:08:42
收藏:
0 评论:
0 赞:
0 阅读:
591
操作1:修改第k条边权。
操作2:询问两点间最大边权。
树链剖分,然后线段树维护最大值
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define eps 1e-12
#define INF 0x7fffffff
#define maxn 11111
...
分类:
其他 时间:
2014-08-20 14:08:32
收藏:
0 评论:
0 赞:
0 阅读:
428
最近业务系统处理数据量比较大,需要分表,由于用的mybatis做持久化,有sharding插件可以直接用,下面是自己做的demo部分...
分类:
其他 时间:
2014-08-20 14:08:22
收藏:
0 评论:
0 赞:
0 阅读:
1397
$apply()和$digest()在AngularJS中是两个核心概念,但是有时候它们又让人困惑。而为了了解AngularJS的工作方式,首先需要了解$apply()和$digest()是如何工作的。这篇文章旨在解释$apply()和$digest()是什么,以及在日常的编码中如何应用它们。
探索$apply()和$digest()
AngularJS提供了一个非常酷的特性叫做双向数据...
分类:
移动平台 时间:
2014-08-20 14:08:12
收藏:
0 评论:
0 赞:
0 阅读:
499
Problem Description
Xueba: Using the 4-Point Scale, my GPA is 4.0.
In fact, the AVERAGE SCORE of Xueba is calculated by the following formula:
AVERAGE SCORE = ∑(Wi * SCOREi) / ∑(Wi) 1
where ...
分类:
其他 时间:
2014-08-20 14:08:06
收藏:
0 评论:
0 赞:
0 阅读:
434
回文数是一种数字,它顺序和逆序排列构成的数字大小相等。...
分类:
其他 时间:
2014-08-20 14:07:52
收藏:
0 评论:
0 赞:
0 阅读:
578
为什么学lua
先占位,晚上再写
1.1 Chunks
Chunk 是一系列语句,lua执行d每一块语句,比如一个文件或者交互模式下的每一行都是一个Chunk。
一个Chunk可以是一个语句,也可以是一系列语句的组合。可以是函数,Chunk可以很大
每个语句结尾的分号(;)是可选的。如果同行又多个语句,最好用;分开
-l会调用 require
lua -la -lb ...
分类:
其他 时间:
2014-08-20 14:07:32
收藏:
0 评论:
0 赞:
0 阅读:
347
一、标签处理类:package cn.conris.sys.form;import java.io.IOException; import java.util.Enumeration;import javax.servlet.http.HttpServletRequest;import javax....
分类:
其他 时间:
2014-08-20 14:06:42
收藏:
0 评论:
0 赞:
0 阅读:
340
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array whic...
分类:
其他 时间:
2014-08-20 14:06:32
收藏:
0 评论:
0 赞:
0 阅读:
334
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:
其他 时间:
2014-08-20 14:06:22
收藏:
0 评论:
0 赞:
0 阅读:
317
本文参考文章:http://blog.csdn.net/qjyong/article/details/3240303一、标签处理类:package cn.conris.sys.form;import java.io.IOException; import java.util.Enumeration....
分类:
其他 时间:
2014-08-20 14:06:12
收藏:
0 评论:
0 赞:
0 阅读:
421
用户升级至 iOS8 版本后,短期内将无法越狱。通过对市场进行分析,可以发现越狱工具市场连连遇冷。
分类:
移动平台 时间:
2014-08-20 14:06:02
收藏:
0 评论:
0 赞:
0 阅读:
361
n个技能,每个技能有0~a[i]的等级,m个课程,每个课程需要前置技能c[i]至少达到lv1[i]等级,效果是技能d[i]达到lv2[i]等级,花费w[i]。输出最小花费使得全技能满级(初始全技能0等级)n#include #include #include #include using names...
分类:
其他 时间:
2014-08-20 14:05:52
收藏:
0 评论:
0 赞:
0 阅读:
379
一台电脑同时运行多个tomcat配置方法:1.使用压缩版的tomcat不能使用安装版的。2.第一个tomcat的配置不变。3.增加环境变量CATALINA_HOME2,值为新的tomcat的地址。4.修改新的tomcat中的startup.bat,把其中的CATALINA_HOME改为CATALIN...
分类:
其他 时间:
2014-08-20 14:05:22
收藏:
0 评论:
0 赞:
0 阅读:
302
什么是 WWW?WWW 指万维网(World Wide Web)万维网常被称为WebWeb 是由遍布全球的计算机所组成的网络所有 Web 中的计算机都可以彼此通信所有这些计算机都使用名为 HTTP 的通信标准WWW 如何工作?Web 信息存储于被称为网页的文档中网页是存储于被称为 Web 服务器的计...
分类:
Web开发 时间:
2014-08-20 14:05:12
收藏:
0 评论:
0 赞:
0 阅读:
405
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get the valu...
分类:
其他 时间:
2014-08-20 14:04:32
收藏:
0 评论:
0 赞:
0 阅读:
280
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.1st (7 tries)class Solution {public: int maxPoin...
分类:
其他 时间:
2014-08-20 14:04:02
收藏:
0 评论:
0 赞:
0 阅读:
364
Sort a linked list using insertion sort.1st ( 3 tries)/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next...
分类:
其他 时间:
2014-08-20 14:03:52
收藏:
0 评论:
0 赞:
0 阅读:
198
本来最新版的已经是3.4了,不过,之前编译过一次,失败了,所以这次先用3.3吧
另外这是转载的文章
http://www.cnblogs.com/codemood/p/3142848.html LLVM的最新版本3.3终于在6月17日发布了,按之前的计划6月5日就应该发布了,不过毕竟没有太晚,赶在V...
分类:
编程语言 时间:
2014-08-20 14:03:42
收藏:
0 评论:
0 赞:
0 阅读:
401