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
上传用户:爺的气质
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
C++ implementation of LZSS
标签: implementation LZSS of
上传时间: 2014-01-15
上传用户:爱死爱死
This program can determin very accurately the nature of the user input
标签: accurately the determin program
上传时间: 2015-01-28
上传用户:shinesyh
Some of the basic matrix operations
标签: operations matrix basic Some
上传时间: 2014-12-05
上传用户:小宝爱考拉
The project demonstrates many Windows common controls, including the extensive use of image lists. The project was used in the book "The Revolutionary Guide To MFC 4 Programming With Visual C++", published by Wrox Press.
标签: demonstrates including extensive controls
上传时间: 2015-01-30
上传用户:zhengjian