码迷,mamicode.com
首页 >  
搜索关键字:paint    ( 1183个结果
hdu 5009 Paint Pearls (dp)
Problem DescriptionLee has a string of n pearls. In the beginning, all the pearls have no color. He plans to color the pearls to make it more fascinat...
分类:其他好文   时间:2015-08-18 01:09:27    阅读次数:153
【分块】 HDU 4391 Paint The Wall
通道题意:区间涂色,询问区间内颜色相同的个数思路:将原区间划分乘sqrt(n)个区间,每次暴力查询和跟新两边的区间,中间的区间直接用hash存每种颜色的节点的数量。这里用到了类似线段树的lazy思想,区间成段修改直接打个标记,等到要划分这个区间的时候先把标记传下去,然后更新代码:#include #...
分类:其他好文   时间:2015-08-17 13:56:56    阅读次数:177
LightOJ 1047-Program C
DescriptionThe people ofMohammadpurhave decided to paint each of their houses red, green, or blue. They've also decided that no two neighboring houses...
分类:其他好文   时间:2015-08-16 21:07:14    阅读次数:136
light oj1074
Description The people of Mohammadpur have decided to paint each of their houses red, green, or blue. They've also decided that no two neighboring houses will be painted the same color. The neighbo...
分类:其他好文   时间:2015-08-16 19:51:05    阅读次数:158
android开发 drawtext的开始坐标位置
我们canvas绘制文字的遇到一个不知道drawtext(str,x,y,paint) 中的x、y坐标值怎么定义,,如果设为(0,0)的话文字就不会出来了。因此查找到一下资料:问:canvas.drawText("3",x,y,paint);x和y是指画得时候数字3中心的坐标吗?还是左上角的坐标?答...
分类:移动开发   时间:2015-08-16 00:20:36    阅读次数:181
周赛C题 LightOJ 1047 (DP)
C -CTime Limit:500MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionThe people ofMohammadpurhave decided to paint each of their houses red, ...
分类:其他好文   时间:2015-08-15 17:51:47    阅读次数:100
light oj 1047-neighbor house
ime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluDescriptionThe people of Mohammadpur have decided to paint each of their houses red, g...
分类:其他好文   时间:2015-08-14 21:02:55    阅读次数:129
[LeetCode] Paint House
An interesting DP problem. This link posts a nice solution which gives costs[i][j] a new meaning and modify it directly and so save the usage of addit...
分类:其他好文   时间:2015-08-14 15:18:33    阅读次数:520
关于Android Canvas.drawText方法中的坐标参数的正确解释
canvas.drawText("www.jcodecraeer.com", x, y, paint); x和y参数是指定字符串中心的坐标吗?还是左上角的坐标?这个问题的直观印象应该是左上角的坐标,但是安卓的处理有点另类,我都怀疑安卓的设计者是不是脑壳有问题了。x默认是‘www.jcodecraee...
分类:移动开发   时间:2015-08-09 17:08:43    阅读次数:147
text字体高度的探究
最近学习自定义view,突然感觉对Paint.drawText(String text,int x,int y,Paint paint)的参数自己根本不理解,于是就探究一下吧,这一探究 ,出事了~ 第一个参数不说了,需要绘制的字符串,第二个参数自己测试了一下,应该是开始绘制的x坐标,第三个参数那么应该就是绘制开始的y坐标了(字符串的下方),第四个参数画笔,没啥可说的。但是绘制出来之后完全不是那个样...
分类:其他好文   时间:2015-08-09 00:28:57    阅读次数:151
1183条   上一页 1 ... 77 78 79 80 81 ... 119 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!