1.题目Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),...
分类:
其他好文 时间:
2015-03-15 16:56:53
阅读次数:
122
http://acm.hdu.edu.cn/showproblem.php?pid=5187
Problem Description
As one of the most powerful brushes, zhx is required to give his juniors n problems.
zhx thinks the ith problem's
difficul...
分类:
其他好文 时间:
2015-03-15 12:24:44
阅读次数:
159
Problem Description
As one of the most powerful brushes, zhx submits a lot of code on many oj and most of them got AC.
One day, zhx wants to count how many submissions he made on
n
ojs. He knows...
分类:
其他好文 时间:
2015-03-15 09:27:34
阅读次数:
133
Problem Description
The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cells (this term gave the name to the cellular phone) and every phone connects to the BTS with the strongest ...
分类:
其他好文 时间:
2015-03-14 17:03:59
阅读次数:
201
4.1. if StatementsPerhaps the most well-known statement type is the if statement. For example:if语句可能是最常见的控制流语句了,例如:>>> x = int(input("Please enter an ...
分类:
编程语言 时间:
2015-03-14 16:36:46
阅读次数:
189
题目:
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at the head of the list.题目意思是说给定一个数这个数以数组的形式表示,就...
分类:
其他好文 时间:
2015-03-14 12:27:07
阅读次数:
128
Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atoms collide, one of them disappears and a lot of power ...
分类:
其他好文 时间:
2015-03-14 11:04:05
阅读次数:
122
DescriptionN children are sitting in a circle to play a game.The children are numbered from 1 to N in clockwise order. Each of them has a card with a ...
分类:
其他好文 时间:
2015-03-14 10:59:21
阅读次数:
169
3.1.3. ListsPython knows a number of compound data types, used to group together other values. The most versatile is the list, which can be written as...
分类:
编程语言 时间:
2015-03-14 01:00:17
阅读次数:
234
Fox Ciel has n boxes in her room. They have the same size and weight, but they might have different strength. The i-th box can hold at most xi boxes on its top (we’ll call xi the strength of the box).S...
分类:
其他好文 时间:
2015-03-13 23:51:34
阅读次数:
384