DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7), the ma...
分类:
其他好文 时间:
2015-05-12 18:44:10
阅读次数:
129
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7)...
分类:
其他好文 时间:
2015-05-12 15:18:08
阅读次数:
89
ZOJ 3772 Calculate the Function(线段树+矩阵)...
分类:
其他好文 时间:
2015-05-11 18:00:01
阅读次数:
132
Problem DescriptionA simple mathematical formula for e iswhere n is allowed to go to infinity. This can actually yield very accurate approximations o....
分类:
其他好文 时间:
2015-05-11 17:42:01
阅读次数:
100
Problem Description
Tom has learned how to calculate the number of inversions in a permutation of n distinct objects by coding, his teacher gives him a problem:
Give you a permutation of n distinct i...
分类:
其他好文 时间:
2015-05-10 09:50:12
阅读次数:
211
HOJ2276, SOJ2498 ,Count prime,区间素数筛,数论
Given an integer interval [L, R](L <= R <= 2147483647, R - L <= 1000000), please calculate the number of prime(s) in the interval....
分类:
其他好文 时间:
2015-05-10 09:47:50
阅读次数:
179
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum of a sub-sequence. For example, given (6,-1,5,4,-7)...
分类:
其他好文 时间:
2015-05-10 06:18:27
阅读次数:
154
Number SequenceProblem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calculate the value of f(n).InputT...
分类:
其他好文 时间:
2015-05-08 22:08:18
阅读次数:
144
1349: [Baltic2006]SquintTime Limit:1 SecMemory Limit:64 MBSubmit:427Solved:248[Submit][Status][Discuss]DescriptionWrite a program to calculate integer...
分类:
其他好文 时间:
2015-05-08 12:16:52
阅读次数:
110
Write a bash script to calculate the frequency of each word in a text filewords.txt.For simplicity sake, you may assume:words.txtcontains only lowerca...
分类:
其他好文 时间:
2015-05-08 09:23:19
阅读次数:
103