Problem DescriptionYour task is to calculate the sum of some integers. InputInput contains an integer N in the first line, and then N lines follow. Ea...
分类:
其他好文 时间:
2015-04-20 20:46:06
阅读次数:
133
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ...
分类:
其他好文 时间:
2015-04-20 16:43:17
阅读次数:
94
Problem DescriptionYour task is to Calculate a + b.InputInput contains an integer N in the first line, and then N lines follow. Each line consists of ...
分类:
其他好文 时间:
2015-04-20 16:42:30
阅读次数:
101
Problem DescriptionIn this problem, your task is to calculate SUM(n) = 1 + 2 + 3 + ... + n.InputThe input will consist of a series of integers n, one ...
分类:
其他好文 时间:
2015-04-20 16:17:37
阅读次数:
144
DescriptionDoctor Ghee is teaching Kia how to calculate the sum of two integers. But Kia is so careless and alway forget to carry a number when the su...
分类:
其他好文 时间:
2015-04-19 21:11:16
阅读次数:
163
既然这个是资格赛, 时间也比较充裕, 我就讲解一下我做题的过程
Time Limit:2000ms
Case Time Limit:1000ms
Memory Limit:256MB
Description
Given a string, calculate the number of subsequences that are palindrome. ...
分类:
其他好文 时间:
2015-04-18 13:10:38
阅读次数:
162
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-04-16 17:17:35
阅读次数:
124
Problem Description
Given a circle sequence A[1],A[2],A[3]......A[n]. Circle sequence means the left neighbour of A[1] is A[n] , and the right neighbour of A[n] is A[1].
Now your job is to calculate...
分类:
其他好文 时间:
2015-04-14 19:49:36
阅读次数:
133
问题描述In the New Year 2014, Xiao Ming is thinking about the question: give two integers N and K, Calculate the number of the numbers of satisfy the following conditions:
It is a positive integer and is n...
分类:
其他好文 时间:
2015-04-14 16:42:31
阅读次数:
119
闭包:是字包含的匿名函数代码块,可以做为表达式、函数参数和函数返回值,闭包表达式的运算结果是一种函数类型。类似于 C# Lambda 表达式。闭包表达式:{(参数列表)->返回类型 in 语句组}例如:fun calculate(opr:String)->(Int,Int)->Int{ var .....
分类:
其他好文 时间:
2015-04-12 11:55:15
阅读次数:
116