Description
People are different. Some secretly read magazines full of interesting girls' pictures, others create an A-bomb in their cellar, others like using Windows, and some like difficult mathe...
分类:
其他好文 时间:
2014-08-05 11:18:39
阅读次数:
245
The Most Wanted LetterYou are given a text, which contains different english letters and punctuation symbols. You should find the most frequent letter...
分类:
其他好文 时间:
2014-08-05 10:41:10
阅读次数:
276
In this installment, I’ll be talking about the (early) Z pipeline and how it interacts with rasterization. Like the last part, the text won’t procee.....
分类:
其他好文 时间:
2014-08-05 00:34:50
阅读次数:
360
A Different TaskThe (Three peg) Tower of Hanoi problem is a popular one in computer science. Briefly the problem is to transfer all the disks from peg...
分类:
其他好文 时间:
2014-08-05 00:31:38
阅读次数:
295
http://poj.org/problem?id=3132题意:给定n和k,问用恰好k个不同的质数来表示n的方案数。分析:n和k都很小。反正就是个背包,选k个物品恰好填满n即可。 1 #include 2 #include 3 using namespace std; 4 5 bool dp[1....
分类:
其他好文 时间:
2014-08-05 00:00:58
阅读次数:
300
题目:
Ananagrams
Most crossword puzzle fans are used to anagrams--groups of words with the same letters in different orders--for example OPTS, SPOT, STOP, POTS and POST. Some words however...
分类:
其他好文 时间:
2014-08-02 18:30:13
阅读次数:
303
Description
Gigel has a strange "balance" and he wants to poise it. Actually, the device is different from any other ordinary balance.
It orders two arms of negligible weight and each arm's lengt...
分类:
其他好文 时间:
2014-08-02 15:30:13
阅读次数:
235
Description
Georgia 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 grid...
分类:
其他好文 时间:
2014-08-02 12:56:13
阅读次数:
312
【Writing Surface Shaders】 Writing shaders that interact with lighting is complex. There are different light types, different shadow options, differen....
分类:
其他好文 时间:
2014-08-02 12:17:33
阅读次数:
295
Problem Description
A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the fi...
分类:
其他好文 时间:
2014-08-01 09:16:21
阅读次数:
280