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. )
资源简介: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 m...
上传时间: 2014-01-06
上传用户:离殇
资源简介:the goal of this simple exercise is to look closely at some RF propagation models, and their implementation in ns2.
上传时间: 2016-05-07
上传用户:SimonQQ
资源简介:* This driver is to be used as a skeleton driver to be able to create a * USB driver quickly. the design of it is based on the usb-serial and * dc2xx drivers.
上传时间: 2016-12-20
上传用户:13188549192
资源简介:the purpose of Software Project Tracking and Oversight is to provide adequate visibility into actual progress so that management can take effective actions when the project s performance deviates significantly from the plans.
上传时间: 2017-02-26
上传用户:三人用菜
资源简介:some of the important matlab codes for calculating PSD of a signal for students
上传时间: 2017-04-19
上传用户:wuyuying
资源简介:the functionality is to be designated the corresponding year reign France Thus the year, which was the year of the zodiac. But can be designated a specific date date of the lunar calendar. Author Note : I used to do this as a commercial pro...
上传时间: 2014-05-28
上传用户:chenxichenyue
资源简介:A simple C program to strobe the LEDsvia Port D. the strobe rate is to be set by adjusting the voltage drop over a potentiometer that is sampled by an ADC.
上传时间: 2014-01-09
上传用户:lifangyuan12
资源简介:libgsmc is a GSM Communications library intended to be used as a foundation for phone applications on linux based handheld mobile phones.
上传时间: 2016-02-13
上传用户:ecooo
资源简介:Also since the domain name--against which the retrieved domain name is to be matched--is currently hard coded. Hence the hard coded name has to be change before compiling the user mode program the .lib file which has been provided in \D...
上传时间: 2016-08-17
上传用户:siguazgb
资源简介:This program is about Compilers.A source routine that need to be compiled need process three sections.It is about the third section.
上传时间: 2016-11-30
上传用户:zm7516678
资源简介:if the method is to be made void, then it cannot have a return statement, all it can do is set the value. Your SeatReserved variable is already a global variable, so what you have in the last post will work, it is known as a set or sette...
上传时间: 2013-12-21
上传用户:xaijhqx
资源简介:An assembly to strobe the LEDsvia Port D. the strobe rate is to be set by adjusting the voltage drop over a potentiometer that is sampled by an ADC
上传时间: 2015-03-20
上传用户:13681659100
资源简介:机顶盒界面源代码: ## Avoid the so-called SINGAPPL to be initialized at runtime ## Used when the tuner is controlled externally by I2C and ## the PIDs forced to some specific values.
上传时间: 2013-12-08
上传用户:lixinxiang
资源简介:the purpose of this document is to define the format of the messages and data being communicated between microprocessors used in heavy-duty vehicle applications. It is meant to serve as a guide toward a standard practice to promote softwa...
上传时间: 2013-12-09
上传用户:tedo811
资源简介:"Web Services is the clarion call of the computer software industry at present. How should we understand the term? Because of the diversity of interpretation in the industry, the easiest way is to be general and assert that Web Services mea...
上传时间: 2015-08-11
上传用户:dyctj
资源简介:the kernel-ica package is a Matlab program that implements the Kernel ICA algorithm for independent component analysis (ICA). the Kernel ICA algorithm is based on the minimization of a contrast function based on kernel ideas. A contrast ...
上传时间: 2014-01-17
上传用户:yiwen213
资源简介:Dropbear is an SSH 2 server, designed to be usable in small memory environments. It supports: * Main features of SSH 2 protocol * Implements X11 forwarding, and authentication-agent forwarding for OpenSSH clients * Compatible w...
上传时间: 2014-01-16
上传用户:skhlm
资源简介:A few drivers for the Motorola C380 s celluar phone hardware with a simple test application. It s configured to build a binary that is to be uploaded at 0x03fd0000 and run at 0x03fd0010
上传时间: 2017-05-01
上传用户:zhangzhenyu
资源简介:Ekiga (formely known as GnomeMeeting) is an open source VoIP and video conferencing application for GNOME. Ekiga uses both the H.323 and SIP protocols. It supports many audio and video codecs, and is interoperable with other SIP compliant s...
上传时间: 2014-10-11
上传用户:wmwai1314
资源简介:CGAL is a collaborative effort of several sites in Europe and Israel. the goal is to make the most important of the solutions and methods developed in computational geometry available to users in industry and academia in a C++ library. the ...
上传时间: 2015-01-08
上传用户:refent
资源简介:REMOVE removes a TSR. It takes two command line arguments. the first is the name of TSR to be removed (or an * to remove the last one), and the second is a file name which MUST contain the interrupt vectors to be loaded when the TSR is remo...
上传时间: 2013-12-09
上传用户:wys0120
资源简介:the purpose of this program is to enable building a config file to the radarFDTD package using a modern GUI.
上传时间: 2015-04-05
上传用户:s363994250
资源简介:CGAL is a collaborative effort of several sites in Europe and Israel. the goal is to make the most important of the solutions and methods developed in computational geometry available to users in industry and academia in a C++ library.
上传时间: 2015-04-10
上传用户:hopy
资源简介:Welcome to PMOS. PMOS is a set of modules, mostly written in Modula-2, to support multitasking. PMOS was designed primarily with real-time applications in mind. It is not an operating system in the conventional sense rather, it is a coll...
上传时间: 2015-07-10
上传用户:windwolf2000
资源简介:the goal of this project is to explore the idea of point-based radiosity, which is a shooting radiosity technique suggested by Mark Harris at UNC. the primary idea is that features available in graphics hardware can be utilized to perfor...
上传时间: 2015-08-24
上传用户:change0329
资源简介:This paper deals with the problem of speech enhancement when only a corrupted speech signal is available for processing. Kalman filtering is known as an effective speech enhancement technique, in which speech signal is usually modeled as...
上传时间: 2013-12-20
上传用户:569342831
资源简介:the aim of this application note is to show to scan the 4x4 matrix keypad multiplexed with a four 7-segment display. the software attached to this application note scans the pressed key and displays it on the multiplexed 7- segment LEDs...
上传时间: 2015-09-13
上传用户:thuyenvinh
资源简介:the purpose of this chapter is to present a survey of recent publications concerning medical image registration techniques. these publications will be classified according to a model based on nine salient criteria, the main dichotomy of w...
上传时间: 2015-09-19
上传用户:叶山豪
资源简介:Octane v1.01.20 the Open Compression Toolkit for C++ . the Open Compression Toolkit is a set of modular C++ classes and utilities for implementing and testing compression algorithms. Simple interface and skeleton code for creating new ...
上传时间: 2013-12-31
上传用户:dbs012280
资源简介:the goal of this library is to make ODBC recordsets look just like an STL container. As a user, you can move through our containers using standard STL iterators and if you insert(), erase() or replace() records in our containers changes can...
上传时间: 2015-10-11
上传用户:xlcky