RelativeLayout圆角实现:drawable目录下面定义shape的xml文件:mall_header_rel_bg.xml 代码里面通过如下代码引用android:background="@drawable/mall_header_rel_bg"solid定义颜色,corn...
分类:
移动开发 时间:
2015-10-09 12:17:33
阅读次数:
215
题意: 有一个n*m的矩阵(0 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #define pii pair 11 #defin...
分类:
其他好文 时间:
2015-10-06 22:03:53
阅读次数:
296
CronTriggerCronTriggers往往比SimpleTrigger更有用,如果您需要基于日历的概念,而非SimpleTrigger完全指定的时间间隔,复发的发射工作的时间表。CronTrigger,你可以指定触发的时间表如“每星期五中午”,或“每个工作日9:30时”,甚至“每5分钟一班9...
分类:
编程语言 时间:
2015-09-29 11:09:37
阅读次数:
163
Quartz可以用来执行任务调度功能,如间隔一定时间调用执行任务。用起来还是蛮方便的。只要将你要调用的类配置到Spring配置文件即可。在Spring的配置文件中配置Quartz。 1 2 3 4 5 6 ...
分类:
编程语言 时间:
2015-09-21 17:10:13
阅读次数:
245
1.题目描述:点击打开链接
2.解题思路:本题是一道简单模拟题。不过重点还是对于题目细节的理解。容易犯2个理解错误:(1)误以为是每个稻草人有不同的scaring range,实际上scaring range是由不同的vacant intersection决定的,跟稻草人毫无关系。(2)误以为所有点都需要被覆盖,实际上题目要求的是只要所有corn被保护就行,插稻草人的地方本来就是空地,有没有被保...
分类:
其他好文 时间:
2015-08-30 15:50:08
阅读次数:
175
Description Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow som....
分类:
其他好文 时间:
2015-08-28 23:08:15
阅读次数:
225
Corn FieldsTime Limit:2000MSMemory Limit:65536KTotal Submissions:10149Accepted:5366DescriptionFarmer John has purchased a lush new rectangular pasture...
分类:
其他好文 时间:
2015-08-26 15:19:23
阅读次数:
135
一,题意:
给定一个N*M的矩阵,矩阵每个格子中只可能有两个数字0,1,1表示该土地肥沃可以种草放牛。
0表示该土地不肥沃不可以种草放牛。且牛不能放在相邻的位置,问有多少种放牛的方法。
二,解析:
该题主要应用了图的位压缩成数的思想与递推的思想,即压缩dp。
三,代码:
#include
#include
#include
#include
using namespace...
分类:
其他好文 时间:
2015-08-21 09:27:16
阅读次数:
149
Children of the Candy CornTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 11215Accepted: 4841DescriptionThe cornfield maze is a popular Hallo...
分类:
其他好文 时间:
2015-08-18 10:11:17
阅读次数:
113
DescriptionThe cornfield maze is a popular Halloween treat. Visitors are shown the entrance and must wander through the maze facing zombies, chainsaw-...
分类:
其他好文 时间:
2015-08-16 16:37:35
阅读次数:
112