DescriptionGeorgia and Bob decide to play a self-invented game. They draw a row of grids on paper, number the grids from left to right by 1, 2, 3, …, and place N chessmen on different grids, as shown i...
分类:
其他好文 时间:
2015-08-01 17:21:22
阅读次数:
114
class Graph{public: Graph(void); virtual ~Graph(void);public: virtual void bounds(const Rect&); virtual void draw(void); virtual void i...
分类:
其他好文 时间:
2015-07-30 19:23:58
阅读次数:
105
题意给你一个井字棋的棋谱,判断井字棋的状态
first, 第一个人走
second 第二个人走
illegal 不合法
the first player won 第一个人赢
the second player won 第二个人赢
draw 平局思路暴力枚举每种赢的状态
答案中没有这种样例 (思考一下)X0X
00X
0XX代码/* *************************...
分类:
其他好文 时间:
2015-07-29 17:17:48
阅读次数:
158
Problem Description
Mr. Hdu is an painter, as we all know, painters need ideas to innovate , one day, he got stuck in rut and the ideas dry up, he took out a drawing board and began to draw casuall...
分类:
其他好文 时间:
2015-07-28 23:14:32
阅读次数:
180
How Long Do You Have to Draw
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 277 Accepted Submission(s): 110
Problem Description
...
分类:
其他好文 时间:
2015-07-28 00:57:25
阅读次数:
148
我把所有属性重新按功能排了一遍,这样才能灌到自己脑子里,并且方便自己以后查找:-------------------- 颜色/渲染方式 -----------------------QWidget::DrawWindowBackground 背景被渲染到目的窗口(默认开启)QWidget::Draw...
分类:
其他好文 时间:
2015-07-27 09:23:46
阅读次数:
139
命名空间using System.Draw;using System.Draw.Drawing2D;在form等控件的 事件中 添加 paint事件///////画各种形状(空心)///////e.Graphics.Clear(Color.AliceBlue);//清楚整个绘画面并以制定的颜色(这里...
分类:
Windows程序 时间:
2015-07-25 18:14:29
阅读次数:
1209
/* 1、定义一个功能,用于打印矩形。 2、定义一个打印99乘法表功能的函数。 */ class FunctionTest { public static void main(String[] args) {// draw(5,6);// printHr();// draw(7,9);...
分类:
编程语言 时间:
2015-07-25 15:01:16
阅读次数:
135
/* Write a program to print a histogram of the lengths of words in its input.
It is easy to draw the histogram with the bars horizontal; a vertical
orientation is more challenging. */
#includ...
分类:
其他好文 时间:
2015-07-25 13:52:49
阅读次数:
128
public void onDraw (Canvas canvas) {
Rect targetRect = new Rect(50, 50, 1000, 200);
Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);
paint.setStrokeWidth(3);
paint.s...
分类:
移动开发 时间:
2015-07-24 10:44:36
阅读次数:
143