直接看代码:// IPlayCtlpublic: HRESULT OnDraw(ATL_DRAWINFO& di) { RECT& rc = *(RECT*)di.prcBounds; /* Rectangle(di.hdcDraw, rc.le...
分类:
其他好文 时间:
2014-07-09 22:13:03
阅读次数:
257
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7454
Accepted: 3640
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
...
分类:
其他好文 时间:
2014-07-09 09:40:34
阅读次数:
249
Tiling
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7437
Accepted: 3635
Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
...
分类:
其他好文 时间:
2014-07-08 18:57:27
阅读次数:
146
Problem Description
A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangle can be partially...
分类:
其他好文 时间:
2014-07-08 11:10:23
阅读次数:
164
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.public class Solution { public...
分类:
其他好文 时间:
2014-07-06 13:50:22
阅读次数:
153
Qt 5以后qmlscene被qml所替代,/usr/bin/qml可以用来执行.qml文件。所以,我们就可以和sh一样的来写界面了。#!/usr/bin/env qml
import QtQuick 2.2
Rectangle {
width: 200
height: 100
Text {
anchors.centerIn: parent
...
分类:
其他好文 时间:
2014-07-04 09:14:40
阅读次数:
259
题目如下:
Slash Maze
By filling a rectangle with slashes (/) and backslashes (), youcan generate nice little mazes. Here is an example:
As you can see, paths in the maze cann...
分类:
其他好文 时间:
2014-07-02 09:07:46
阅读次数:
186
首先tarjan缩点,重新建图后,每个点的权值就是该点包含点的个数。
然后从入度为0的点开始记忆化搜索,dp[i]表示以i为根最多包含多少点。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define e...
分类:
其他好文 时间:
2014-07-02 08:37:48
阅读次数:
211
Rectangle and Circle
Problem Description
Given a rectangle and a circle in the coordinate system(two edges of the rectangle are parallel with the X-axis, and the other two are parallel with the Y...
分类:
其他好文 时间:
2014-07-02 07:29:06
阅读次数:
268
1.形状(Ellipse、Line、Path、Polygon、Polyline 和 Rectangle) 1 8 9 23 24 33 34 37 41 42 43 ...
分类:
Web程序 时间:
2014-06-30 15:18:01
阅读次数:
293