/*A + B Problem II
Problem Description
I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B.
Input
The first line of the input contains an...
分类:
其他好文 时间:
2014-07-30 17:38:54
阅读次数:
306
Problem Description
Recently, scientists find that there is love between any of two people. For example, between A and B, if A don’t love B, then B must love A, vice versa. And there is no possibilit...
分类:
其他好文 时间:
2014-07-30 17:38:04
阅读次数:
287
将R作为科学计算器使用
1.例:
> 1:5 + 6:10
[1] 7 9 11 13 15
> c(1,3,5,7,9)+c(2,4,6,8,10)
[1] 3 7 11 15 19
> median(2:5)
[1] 3.5
> 1:10 / 3
[1] 0.3333333 0.6666667 1.000...
分类:
其他好文 时间:
2014-07-30 17:32:54
阅读次数:
164
Master-Mind Hints
MasterMind is a game for two players. One of them, Designer, selects a secret code. The other,Breaker, tries to break it. A code is no more than a row of colored dots. ...
分类:
其他好文 时间:
2014-07-30 14:44:53
阅读次数:
242
Description
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 ...
分类:
其他好文 时间:
2014-07-30 12:24:13
阅读次数:
226
Description
In this problem, you have to analyze a particular sorting algorithm. The algorithm processes a sequence of n distinct integers by swapping two adjacent sequence elements until the seq...
分类:
其他好文 时间:
2014-07-30 12:22:33
阅读次数:
290
Pots
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 9734
Accepted: 4099
Special Judge
Description
You are given two pots, having the volume of A and B...
分类:
其他好文 时间:
2014-07-30 12:17:03
阅读次数:
297
Rectangles
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 14340 Accepted Submission(s): 4629
Problem Description
Given two rectangl...
分类:
其他好文 时间:
2014-07-30 12:16:43
阅读次数:
191
题目意思:给一棵树,找到俩个不相交的通路,使得这俩个通路的长度和乘机最大;解法: 小哥一看呵呵 这不就是枚举点 然后求俩边的树的直径在相乘求个最大值的题么! 呵呵 这个N 有100000 当时就不玩了; 学长指导了下我; 俺会了!/灯泡 在枚举点在书的直径上时点的左右的最长的链无非这几...
分类:
其他好文 时间:
2014-07-30 12:07:53
阅读次数:
342
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpo...
分类:
其他好文 时间:
2014-07-30 12:05:03
阅读次数:
248