一个QImage或QPixmap新建变量时,第一次填充图片时设置的宽高正常(fill),其后的绘制操作(draw)则会在绘制的矩形底边和右边加上painter.pen().width() 在下面代码17行设置端点查看内存可以直观看到只在右边和底边++ ...
分类:
其他好文 时间:
2016-09-29 18:11:37
阅读次数:
154
Painter's Problem Description There is a square wall which is made of n*n small square bricks. Some bricks are white while some bricks are yellow. Bob ...
分类:
其他好文 时间:
2016-09-19 18:02:12
阅读次数:
265
Description Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' ...
分类:
其他好文 时间:
2016-09-16 16:55:51
阅读次数:
201
String painter 题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=4283 题意: 有n个人参加选秀,每个人有一个Di值,Di值*(出场时间-1)决定他们的悲惨度,这i个人按顺序出场,但是在出场前可以通过一个栈略微调整出场顺序,输出调整后的 ...
分类:
其他好文 时间:
2016-08-11 09:47:59
阅读次数:
185
问题链接:HDU5319 Painter。
本题可以使用深度优先搜索求解。
红色刷子("R"刷子)按“\”的方向刷,蓝色刷子("B"刷子)按"/"方向刷。一个地方如果被两次刷到变成绿色("G"色)。
首先,忽略蓝色("B"色),只看红色("R"色),把绿色("G"色)也看成红色(因为需要用蓝色刷子刷一下),看最少需要用红色刷子刷几次;然后,忽略红色("R"色),只看蓝色("B"色),把绿...
分类:
其他好文 时间:
2016-07-22 19:16:07
阅读次数:
137
题目 Problem Description Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his ... ...
分类:
其他好文 时间:
2016-07-07 00:43:54
阅读次数:
204
Problem Description Eddy begins to like painting pictures recently ,he is sure of himself to become a painter.Every day Eddy draws pictures in his sma ...
分类:
其他好文 时间:
2016-07-04 21:58:24
阅读次数:
202
Script Form 是SAP所提供的一款强大的报表设设计工具。 一、Script Form主要工具包括如下: 1)Form Painter:格式绘制器,用于格式的设定。TCoce:SE71. 2)Standard Text:标准文件,可以创奸独立于格式的文本,供具体Form使用.TCode:SO ...
分类:
其他好文 时间:
2016-06-30 19:55:01
阅读次数:
293
POJ 1681 Painter's Problem(高斯消元) Description There is a square wall which is made of n*n small square bricks. Some bricks are white while some bricks ...
分类:
其他好文 时间:
2016-06-16 20:18:19
阅读次数:
258