题目: Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner ...
分类:
其他好文 时间:
2016-08-01 22:39:24
阅读次数:
138
RoundedImageView是gitHub上面的一个开源组件(https://github.com/vinc3m1/RoundedImageView),实现一些圆形或者圆角矩形是很方便的, 其中,riv_corner_radius是指圆角的大小,简单来说,等于宽度一半时,就是圆形了;小于宽度的一 ...
分类:
其他好文 时间:
2016-08-01 17:10:19
阅读次数:
1615
Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as s ...
分类:
其他好文 时间:
2016-08-01 06:54:13
阅读次数:
130
Problem Turn the pokers (HDU 4869) 题目大意 有m张牌,全为正面朝上。进行n次操作,每次可以将任意ai张反面,询问n次操作可能的状态数。 解题分析 记正面朝上为1,朝下为0。 若最后有x个1,则对答案的贡献为C(n,x)。所以只需要知道最后可能的1的个数。 假设已经 ...
分类:
其他好文 时间:
2016-07-30 19:45:31
阅读次数:
202
one good turn deserves another 礼尚往来 gets a good salary 有一份很好的薪水 never pays it back 从不归还 deserve 应得的 lawyer 律师 immediately 立刻马上 There aren’t enough cha ...
分类:
其他好文 时间:
2016-07-24 11:58:02
阅读次数:
123
Lattice paths Problem 15 Problem 15 Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are exactl ...
分类:
其他好文 时间:
2016-07-20 16:14:06
阅读次数:
207
(快速幂求逆元+组合数) 题意: 给出n次翻转和m张牌,牌相同且一开始背面向上,输入n个数xi,表示xi张牌翻转,问最后得到的牌的情况的总数。 思路: 首先我们可以假设一开始牌背面状态为0,正面则为1,最后即是求ΣC(m,k),k为所有能取到1的情况。首先我们要确认最后1的奇偶性。因为一次翻转0-> ...
分类:
其他好文 时间:
2016-07-14 01:57:20
阅读次数:
191
62. Unique Paths 62. Unique Paths Total Accepted: 93894 Total Submissions:253450 Difficulty: Medium A robot is located at the top-left corner of a m x ...
分类:
其他好文 时间:
2016-07-07 19:15:49
阅读次数:
141
实现编辑用户信息功能时使用了jqueryui的datepicker,但是只有第一次在列表中选中用户才能触发弹出框。datepicker会在方法初始化时在页面尾部附加一个<divid="ui-datepicker-div"class="ui-datepickerui-widgetui-widget-contentui-helper-clearfixui-corner-all"></d..
分类:
Web程序 时间:
2016-07-05 19:07:13
阅读次数:
181
Turn off DB Initializer in Code-First: You can also turn off the DB initializer of your application. Suppose, for the production environment, you don' ...
分类:
数据库 时间:
2016-07-05 19:01:27
阅读次数:
147