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
上传用户:离殇
II2c driver for uclinux
上传时间: 2014-01-19
上传用户:lyy1234
vxworks bsp for 4510 in tornato 2.2
上传时间: 2015-01-25
上传用户:diets
A source code for gragh
上传时间: 2014-01-17
上传用户:love1314
ext2 file system driver for win nt
上传时间: 2013-12-11
上传用户:jennyzai
for linux 的video 例子,嵌入式处理器。
上传时间: 2015-01-26
上传用户:1051290259
a zipped example for using a USB camera directly from Java
标签: directly example zipped camera
上传时间: 2013-12-17
上传用户:15736969615
参考例子_收发ASM-1
上传时间: 2015-01-26
上传用户:BOBOniu
参考例子_收发ASM-2
上传时间: 2014-01-02
上传用户:大三三
Tutorial for Vb .Net for Encryption/Decryption of data
标签: Encryption Decryption for Tutorial
上传时间: 2014-01-21
上传用户:trepb001