Problem A - No Tipping
As Archimedes famously observed, if you put an object on a lever arm,it will exert a twisting force around the lever's fulcrum. Thistwisting is called torque and is equal to th...
分类:
其他好文 时间:
2014-07-19 23:13:39
阅读次数:
343
DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year ...
分类:
其他好文 时间:
2014-07-18 18:17:12
阅读次数:
280
EightTime Limit:1000MSMemory Limit:65536KTotal Submissions:23815Accepted:10518Special JudgeDescriptionThe 15-puzzle has been around for over 100 years...
分类:
其他好文 时间:
2014-07-16 20:48:30
阅读次数:
219
Fence RailsBurch, Kolstad, and SchrijversFarmer John is trying to erect a fence around part of his field. He has decided on the shape of the fence and...
分类:
其他好文 时间:
2014-07-16 00:08:30
阅读次数:
367
Partition an array of integers around a value such taht all elements less than x come before elements greater than or equal to x.Idea: Just use of sub...
分类:
其他好文 时间:
2014-07-15 22:52:15
阅读次数:
239
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:...
分类:
其他好文 时间:
2014-07-13 17:13:49
阅读次数:
213
Problem Description
Xiao Ming is traveling around several cities by train. And the time on the train is very boring, so Xiao Ming will use the mobile Internet. We all know that mobile phone receives ...
分类:
其他好文 时间:
2014-07-12 21:28:48
阅读次数:
197
Write code to partition a linked list around a value x, such that all nodes less than x come before all nodes greater than or equal to x.Use two addit...
分类:
其他好文 时间:
2014-07-09 17:44:36
阅读次数:
159
Buy Tickets
Time Limit: 4000MS
Memory Limit: 65536K
Total Submissions: 12296
Accepted: 6071
Description
Railway tickets were difficult to buy around the Lunar New Y...
分类:
其他好文 时间:
2014-07-08 15:24:47
阅读次数:
160
下午在重新整理一份代码,中间遇到这么一个问题:要么出现内存访问冲突,要么出现“Stack around the variable XX was corrupted”错误。很是恼火!先出现的是“Stack around the variable XX was corrupted”错误,网上查到的第一种...
分类:
其他好文 时间:
2014-07-05 17:38:49
阅读次数:
399