摘要:
挺简单的,多占内存,少用循环Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area i... 阅读全文
posted @ 2015-12-06 11:07
白夜行zz
阅读(189)
评论(0)
推荐(0)
摘要:
dfs函数携带vector形参记录搜索路径时间限制10 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is ... 阅读全文
posted @ 2015-12-06 11:06
白夜行zz
阅读(168)
评论(0)
推荐(0)
摘要:
A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key and a Next pointer to the next structure. Now give... 阅读全文
posted @ 2015-12-06 11:05
白夜行zz
阅读(157)
评论(0)
推荐(0)
摘要:
用一个vector 模拟栈每次检查输入,如果大于上次出栈的检查是否满足范围要求。满足的话将中间的数压栈如果小于上次出栈的检查是否为栈尾。满足的话最后一个数出栈Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are ... 阅读全文
posted @ 2015-12-06 11:02
白夜行zz
阅读(203)
评论(0)
推荐(0)
摘要:
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to calculate S1 - S2 for any given strings. However, i... 阅读全文
posted @ 2015-12-06 11:01
白夜行zz
阅读(229)
评论(0)
推荐(1)
摘要:
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However,... 阅读全文
posted @ 2015-12-06 11:00
白夜行zz
阅读(133)
评论(0)
推荐(0)
摘要:
The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. For example, given N being 12, there are five 1's i... 阅读全文
posted @ 2015-12-06 11:00
白夜行zz
阅读(155)
评论(0)
推荐(0)
摘要:
时间限制400 ms内存限制64000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueZhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each student, you are supposed to ou... 阅读全文
posted @ 2015-12-06 10:59
白夜行zz
阅读(440)
评论(0)
推荐(0)
摘要:
The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file contains ... 阅读全文
posted @ 2015-12-06 10:58
白夜行zz
阅读(140)
评论(0)
推荐(0)
摘要:
LCS 最大公共子序列。 memset函数需要include 时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors ... 阅读全文
posted @ 2015-12-06 10:57
白夜行zz
阅读(255)
评论(0)
推荐(0)
浙公网安备 33010602011771号