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
上传用户:离殇
The source code in a tutorial.
上传时间: 2015-01-25
上传用户:坏天使kk
Dialer ---- Windows TAPI sample application created as an illustration of the usage of Windows TAPI
标签: Windows TAPI illustration application
上传时间: 2015-01-26
上传用户:lizhen9880
The TapiComm sample uses both the Telephony API and the Win32 Communications API to demonstrate one way to implement a very simple TTY application. While the user interface and TTY emulation are very rudimentary, the TAPI and comm modules are fairly complete.
标签: Communications demonstrate API Telephony
上传时间: 2014-12-07
上传用户:chenxichenyue
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
The Virus Program Information
标签: Information Program Virus The
上传时间: 2014-01-11
上传用户:lmeeworm
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
上传用户:小宝爱考拉
flash icon is a small program, it analog the qq s flash icon in the taskbar
上传时间: 2015-01-29
上传用户:zhuyibin