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
上传用户:离殇
这是一个介绍Design By Contract的PPT文件
上传时间: 2014-01-12
上传用户:zsjzc
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
Mathematical function library for Microsoft C / by Unjeng Vheng 书的配套三张软盘
标签: Mathematical Microsoft function library
上传时间: 2014-07-05
上传用户:wanghui2438
嵌入式操作系统及开发环境by 李驹光
上传时间: 2014-01-21
上传用户:stvnash
Conservator extends on the concept of a Flyweight Factory by allowing shared Flyweight objects to be mutated after creation without undesired side effects.
标签: Flyweight Conservator allowing extends
上传时间: 2014-01-06
上传用户:cuibaigao
v几个小应用程序的 C 语言源代码
上传时间: 2013-12-30
上传用户:hxy200501
Linux 内核源代码(V!1.0.9)
上传时间: 2014-01-07
上传用户:CHENKAI
来宾留言板CGI程序 by visual c
上传时间: 2015-02-12
上传用户:wendy15
More Exceptional C++ By Herb Sutter
标签: Exceptional Sutter More Herb
上传时间: 2014-01-24
上传用户:6546544