Say you have an array for which the ith element isthe price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as manytransactions as you like (ie, buy one an...
分类:
其他好文 时间:
2015-01-30 09:11:13
阅读次数:
176
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1796
How many integers can you find
Time Limit: 12000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4756 ...
分类:
其他好文 时间:
2015-01-30 09:09:12
阅读次数:
214
Good Luck in CET-4 Everybody!
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 5815 Accepted Submission(s): 3759
Problem Description...
分类:
其他好文 时间:
2015-01-30 09:05:09
阅读次数:
172
问题描述来自 :http://my.oschina.net/cfdvalidation/blog/308489 #!/usr/bin/python
import?numpy?as?np
import?matplotlib.pylab?as?plt
import?time,sys
nx?=?41
dx?=?2.0/(nx-1)
nt=25
dt=0.0...
分类:
编程语言 时间:
2015-01-30 06:45:48
阅读次数:
288
1 import tt 2 import numpy as np 3 import random 4 import time 5 st = time.time() 6 7 def wTx(alpha, trainx, trainy): return np.dot(trainx, n...
分类:
其他好文 时间:
2015-01-30 06:38:44
阅读次数:
196
这篇文章的主题是动态规划, 主要介绍LeetCode中一维动态规划的题目, 列表如下:Climbing StairsDecode WaysUnique Binary Search TreesMaximum SubarrayMaximum Product SubarrayBest Time to Bu...
分类:
其他好文 时间:
2015-01-30 06:35:32
阅读次数:
195
点击打开链接
Seek the Name, Seek the Fame
Time Limit: 2000MS
Memory Limit: 65536K
Total Submissions: 12791
Accepted: 6304
Description
The little cat is so ...
分类:
其他好文 时间:
2015-01-30 00:09:14
阅读次数:
198
Linux 常用命令-- toptop 命令实时显示进程的状态。默认状态显示的是cpu密集型的进程,并且每5秒钟更新一次。你可以通过PID的数字大小,age(),time(),resident memory usage()以及进程从启动后占用cpu的时间。top - 20:59:18 up 4 da...
分类:
系统相关 时间:
2015-01-29 23:48:04
阅读次数:
358
Layout
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 7613
Accepted: 3658
Description
Like everyone else, cows like to stand close to their friends wh...
分类:
编程语言 时间:
2015-01-29 22:35:47
阅读次数:
330
化成反比函数求积分
G - Probability
Time Limit: 1 sec
Memory Limit: 16MB
Consider rectangular coordinate system and point L(X,Y) which is randomly chosen among all points in the area A whic...
分类:
其他好文 时间:
2015-01-29 22:34:11
阅读次数:
236