Tug of War(A tug of war is to be arranged at the local office picnic. For the tug of war, the picnickers must be divided into two teams. Each person must be on one team or the other the number of people on the two teams must not differ by more than 1 the total weight of the people on each team should be as nearly equal as possible. The first line of input contains n the number of people at the picnic. n lines follow. The first line gives the weight of person 1 the second the weight of person 2 and so on. Each weight is an integer between 1 and 450. There are at most 100 people at the picnic. Your output will be a single line containing 2 numbers: the total weight of the people on one team, and the total weight of the people on the other team. If these numbers differ, give the lesser first. )
上传时间: 2014-01-07
上传用户:离殇
A Real Time Linux 一篇介绍如何在Linux这样时间共享操作系统之上添加硬实时功能的方法。
上传时间: 2014-01-09
上传用户:a6697238
The source code in a tutorial.
上传时间: 2015-01-25
上传用户:坏天使kk
A source code for gragh
上传时间: 2014-01-17
上传用户:love1314
C++ Source code from a tutorial
上传时间: 2015-01-25
上传用户:daguda
read the network addresses from a named Directory Services object and display all parts of the address.
标签: addresses Directory the Services
上传时间: 2013-12-13
上传用户:nanxia
a zipped example for using a USB camera directly from Java
标签: directly example zipped camera
上传时间: 2013-12-17
上传用户:15736969615
a zipped example of communication between the Cerebellum 16f877 pic board and the CMUcam. There are plenty of comments in the code.
标签: communication Cerebellum the example
上传时间: 2013-12-16
上传用户:1159797854
D/A单片机程序,供单片机爱好者参考
标签: 单片机程序
上传时间: 2013-12-25
上传用户:GavinNeko
a开头和a结尾的字符串
标签: 字符串
上传时间: 2013-12-01
上传用户:han_zh