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
上传用户:离殇
Example of Embedded Zerotree Wavelet encoding in ANSI-C
标签: Embedded Zerotree encoding Example
上传时间: 2015-01-24
上传用户:爺的气质
OReilly - Python Cookbook
上传时间: 2015-01-25
上传用户:sammi
thinking in python
上传时间: 2015-01-25
上传用户:moerwang
Dialer ---- Windows TAPI sample application created as an illustration of the usage of Windows TAPI
标签: Windows TAPI illustration application
上传时间: 2015-01-26
上传用户:lizhen9880
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 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
Tutorial for Vb .Net for Encryption/Decryption of data
标签: Encryption Decryption for Tutorial
上传时间: 2014-01-21
上传用户:trepb001
Core Java 2 Volume I - Fundamentals, 6th Edition
标签: Fundamentals Edition Volume Core
上传时间: 2015-01-27
上传用户:ynwbosss
C++ implementation of LZSS
标签: implementation LZSS of
上传时间: 2014-01-15
上传用户:爱死爱死