摘要:
Exchange CardsTime Limit:2 Seconds Memory Limit:65536 KBAs a basketball fan, Mike is also fond of collecting basketball player cards. But as a student, he can not always get the money to buy new cards, so sometimes he will exchange with his friends for cards he likes. Of course, different cards have 阅读全文
posted @ 2013-04-08 17:32
贾树丙
阅读(272)
评论(0)
推荐(0)
摘要:
Counting TrianglesTime Limit:2 Seconds Memory Limit:65536 KBGiven an equilateral triangle with n the length of its side, program to count how many triangles in it.InputThe length n (n 2 int n; 3 int f[501]; 4 void init(){ 5 int i,j; 6 f[0]=0; 7 for(i=1;i<501;i++) 8 f[i]=f[i-1]+i... 阅读全文
posted @ 2013-04-08 17:28
贾树丙
阅读(423)
评论(0)
推荐(0)
摘要:
Multiplication PuzzleTime Limit:2 Seconds Memory Limit:65536 KBThe multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points equal to the product of the number on the card taken 阅读全文
posted @ 2013-04-08 17:08
贾树丙
阅读(271)
评论(0)
推荐(0)
摘要:
Largest Rectangle in a HistogramTime Limit:2 Seconds Memory Limit:65536 KBA 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 figure on the left shows the histogram that consist 阅读全文
posted @ 2013-04-08 17:07
贾树丙
阅读(343)
评论(0)
推荐(0)
摘要:
Conquer a New RegionTime Limit:5 Seconds Memory Limit:32768 KBThe wheel of the history rolling forward, our king conquered a new region in a distant continent.There are N towns (numbered from 1 to N) in this region connected by several roads. It's confirmed that there is exact one route between 阅读全文
posted @ 2013-04-08 17:00
贾树丙
阅读(247)
评论(0)
推荐(0)
摘要:
Human Gene FunctionsTime Limit:2 Seconds Memory Limit:65536 KBIt is well known that a human gene can be considered as a sequence, consisting of four nucleotides, which are simply denoted by four letters, A, C, G, and T. Biologists have been interested in identifying human genes and determining their 阅读全文
posted @ 2013-04-08 16:56
贾树丙
阅读(410)
评论(0)
推荐(0)
摘要:
Unimodal Palindromic DecompositionsTime Limit:2 Seconds Memory Limit:65536 KBA sequence of positive integers is Palindromic if it reads the same forward and backward. For example:23 11 15 1 37 37 1 15 11 231 1 2 3 4 7 7 10 7 7 4 3 2 1 1A Palindromic sequence is Unimodal Palindromic if the values do 阅读全文
posted @ 2013-04-08 16:44
贾树丙
阅读(671)
评论(0)
推荐(0)
摘要:
FatMouse and CheeseTime Limit:10 Seconds Memory Limit:32768 KBFatMouse has stored some cheese in a city. The city can be considered as a square grid of dimension n: each grid location is labelled (p,q) where 0 # includeusing namespace std;int map[105][105];int vis[105][105];int n,k;bool judge(int x, 阅读全文
posted @ 2013-04-08 15:09
贾树丙
阅读(317)
评论(0)
推荐(0)

浙公网安备 33010602011771号