There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo...
分类:
其他好文 时间:
2015-12-23 14:30:27
阅读次数:
393
publicclassDrawViewextendsView{
publicfloatcurrentX=40;
publicfloatcurrentY=50;
publicDrawView(Contextcontext){
super(context);
}
//重写ondraw,通过canvas绘画
protectedvoidonDraw(Canvascanvas){
Paintpaint=newPaint();
paint.setColor(Color.RED);
canvas.drawCir..
分类:
移动开发 时间:
2015-12-21 23:52:13
阅读次数:
431
题目链接给一个长度为n的环, 两个人轮流涂色, 每次涂m个连续的, 无法继续涂了就输。 1 #include 2 using namespace std; 3 #define pb(x) push_back(x) 4 #define ll long long 5 #define mk(x, y) m...
分类:
其他好文 时间:
2015-12-16 21:20:03
阅读次数:
171
1 #include 2 #include 3 #include 4 int Move(); 5 int Bulid(); 6 int Paint(); 7 int main () 8 { 9 Move();10 Bulid();11 Paint();12 13 ...
分类:
其他好文 时间:
2015-12-16 09:25:30
阅读次数:
160
在做自定义控件时或者GDI+的时候经常会遇到获取Graphics实例的问题。一般有三种获取方式1、从Paint事件的参数中获取。窗体和许多控件都有一个Paint事件,有一个PaintEventArgs类型的参数eprivatevoidForm1_Paint(objectsender,System.W...
分类:
其他好文 时间:
2015-12-14 12:12:43
阅读次数:
183
import android.content.Context;import android.graphics.Canvas;import android.graphics.Paint;import android.util.AttributeSet;import android.util.Log;i...
分类:
其他好文 时间:
2015-12-10 13:24:41
阅读次数:
224
package com.joyodream.common.view;import android.content.Context;import android.graphics.Canvas;import android.graphics.Paint.Style;import android.tex...
分类:
其他好文 时间:
2015-12-08 16:02:04
阅读次数:
112
题目:There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certa...
分类:
其他好文 时间:
2015-12-03 07:12:06
阅读次数:
127
public class Solution { public int minCostII(int[][] costs) { int n = costs.length; if (n == 0) { return 0; } ...
分类:
其他好文 时间:
2015-12-01 08:26:19
阅读次数:
112
接着之前的[css]我要用css画幅画(四), 这次我给小明和静静增加了对话,用了简单的动画效果。github:https://github.com/bee0060/Css-Paint, 完整代码在pages/sun-house-4.html和相关的css中可以找到demo:http://bee00...
分类:
Web程序 时间:
2015-11-27 17:31:16
阅读次数:
282