两个数值比较大小...
分类:
其他 时间:
2015-03-30 09:23:30
收藏:
0 评论:
0 赞:
0 阅读:
254
题目链接:gas-station
/**
*
There are N gas stations along a circular route, where the amount of gas at station i is gas[i].
You have a car with an unlimited gas tank and it costs cost[i] of ...
分类:
其他 时间:
2015-03-30 09:22:50
收藏:
0 评论:
0 赞:
0 阅读:
98
Babelfish
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 34816
Accepted: 14908
Description
You have just moved from Waterloo to a big city. The people here ...
分类:
其他 时间:
2015-03-30 09:22:30
收藏:
0 评论:
0 赞:
0 阅读:
165
Beat the Spread!
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 5192 Accepted Submission(s): 2705
Problem Description
Superbowl Sun...
分类:
其他 时间:
2015-03-30 09:22:10
收藏:
0 评论:
0 赞:
0 阅读:
196
Lowest Bit
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 9052 Accepted Submission(s): 6656
Problem Description
Given an positive i...
分类:
其他 时间:
2015-03-30 09:22:00
收藏:
0 评论:
0 赞:
0 阅读:
147
1.题目描述:点击打开链接
2.解题思路:本题给出了一颗二叉树的中序遍历和后序遍历,要求找一个叶子,使得它到达根结点的权和最小,如果有多解,那么该叶子自身的权应该尽量小。首先,根据中序遍历和后序遍历建立二叉树,这道题采用数组来存放左右子树的结点值,根为root的左子树结点为lch[root]右子树结点为rch[root]。
那么,如何根据中序遍历,后序遍历来建树呢?方法是根据后序遍历找到根,然...
分类:
其他 时间:
2015-03-30 09:21:50
收藏:
0 评论:
0 赞:
0 阅读:
203
1405. Mahershalalhashbaz, Nebuchadnezzar, and Billy Bob Benjamin Go to the Regionals
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
The Association for Computing Mac...
分类:
其他 时间:
2015-03-30 09:21:10
收藏:
0 评论:
0 赞:
0 阅读:
226
1459. The Dragon of Loowater
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
Once upon a time, in the Kingdom of Loowater, a minor nuisance turned into a major problem.
...
分类:
其他 时间:
2015-03-30 09:21:00
收藏:
0 评论:
0 赞:
0 阅读:
244
Specialized Four-Digit Numbers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 4603 Accepted Submission(s): 3344
Problem Description
...
分类:
其他 时间:
2015-03-30 09:20:50
收藏:
0 评论:
0 赞:
0 阅读:
235
1484. 守望者的逃离
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
恶魔猎手尤迪安野心勃勃,他背叛了暗夜精灵,率领深藏在海底的娜迦族企图叛变。守望者在与尤迪安的交锋中遭遇了围杀,被困在一个荒芜的大岛上。为了杀死守望者,尤迪安开始对这个荒岛施咒,这座岛很快就会沉下去。到那时,岛上的...
分类:
其他 时间:
2015-03-30 09:20:50
收藏:
0 评论:
0 赞:
0 阅读:
221
1234. Playground
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
George has K <= 20 steel wires shaped in the form of half-circles, with radii a1, a2, . . . , aK. The...
分类:
其他 时间:
2015-03-30 09:20:30
收藏:
0 评论:
0 赞:
0 阅读:
260
9456. Clumsy Cows
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
Bessie the cow is trying to type a balanced string of parentheses into her new laptop, but she is s...
分类:
其他 时间:
2015-03-30 09:20:20
收藏:
0 评论:
0 赞:
0 阅读:
233
1426. Phone List
Constraints
Time Limit: 1 secs, Memory Limit: 64 MB
Description
Given a list of phone numbers, determine if it is consistent in the sense that no number is the pre?x...
分类:
其他 时间:
2015-03-30 09:20:10
收藏:
0 评论:
0 赞:
0 阅读:
220
1422. Table Tennis
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
There is a rectangular pool table ABCD with side lengths m and n, where m and n are integers with m...
分类:
其他 时间:
2015-03-30 09:20:00
收藏:
0 评论:
0 赞:
0 阅读:
222
10330. Cutting Sausages
Constraints
Time Limit: 1 secs, Memory Limit: 256 MB
Description
Mirko has given up on the difficult coach job and switched to food tasting instead. Having sk...
分类:
其他 时间:
2015-03-30 09:19:50
收藏:
0 评论:
0 赞:
0 阅读:
240
1763. 传球游戏
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
上体育课的时候,小蛮的老师经常带着同学们一起做游戏。这次,老师带着同学们一起做传球游戏。
游戏规则是这样的:n个同学站成一个圆圈,其中的一个同学手里拿着一个球,当老师吹哨子时开始传球,每...
分类:
其他 时间:
2015-03-30 09:19:40
收藏:
0 评论:
0 赞:
0 阅读:
640
1764. 立体图
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
小渊是个聪明的孩子,他经常会给周围的小朋友们讲些自己认为有趣的内容。最近,他准备给小朋友们讲解立体图,请你帮他画出立体图。
小渊有一块面积为m*n的矩形区域,上面有m*n个边长为1的格子,每个格子上堆了一些同样...
分类:
其他 时间:
2015-03-30 09:19:30
收藏:
0 评论:
0 赞:
0 阅读:
168
1781. Knight
Constraints
Time Limit: 1 secs, Memory Limit: 64 MB
Description
Your task is to write a program to calculate the minimum number of moves needed for a knight to reach one...
分类:
其他 时间:
2015-03-30 09:19:20
收藏:
0 评论:
0 赞:
0 阅读:
218
1936. Knight Moves
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the s...
分类:
其他 时间:
2015-03-30 09:19:10
收藏:
0 评论:
0 赞:
0 阅读:
205
1299. Academy Awards
Constraints
Time Limit: 1 secs, Memory Limit: 32 MB
Description
Selected from 3,850 teams from 1,329 universities in 68 countries competing at 106 sites and prel...
分类:
其他 时间:
2015-03-30 09:19:00
收藏:
0 评论:
0 赞:
0 阅读:
242