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
上傳用戶:離殤
RemoteWAP is a Remote Administration Tool for any Operating System that can support the Java Virtual Machine. It has been designed for anyone who wishes to have complete control of there OS anywhere by using a WAP enabled Mobile Phone. RemoteWAP is developed using Java and WML for the client mobile phone front-end pages. RemoteWAP has a Java Swing-GUI to allow for easy control. Future releases will have a Command Line Interface for quick use
標簽: Administration RemoteWAP Operating Virtual
上傳時間: 2015-02-01
上傳用戶:exxxds
3. 設計一個接口Shape,接口中包含方法:Draw和Resize。定義一些具體類,如:Point、Line、Circle、Rectangle等,每個類都實現接口Shape。Draw方法繪制圖形,Resize方法改變圖形大小。用Java實現這些接口和類,并用測試類測試它們。 注意:不需要真正繪制圖形,如Line的Draw方法只需輸出下面文本即可: “直線的起點是(x1,y1,),終點是(x2,y2)”
上傳時間: 2015-02-09
上傳用戶:frank1234
系統可用編輯器1. Overview 2. System Requirements 3. Contents of the Distribution Package 4. List of Available Command Line Flag Options 5. Contents of the Extracted Files 6. Installing the Software in Interactive Mode 7. Installing the Software in Silent Mode 8. Installing the INF Files Prior to OS Installation 8A. Installing the Windows* XP INF Files Prior to OS Installation
標簽: Distribution Requirements Overview Contents
上傳時間: 2015-02-23
上傳用戶:wab1981
在 VC 環境下編譯驅動程序(MinDriver)的示例 編譯方法: -------------------------------------------------------- 1. 利用 VC 打開工作區文件MinDriverInVc.dsw 2.“Project”菜單->“Settings”菜單,彈出Project Settings對話框 3. 將 Build Command Line 的最后兩個參數“d: ” 和 “D:\tony\Xfilter_Disk\DdkSource\MinDriverInVc\MinDriver” 修改為正確的路徑(源代碼所在的盤符和路徑) 4. 按 Build 按鈕編譯驅動程序
上傳時間: 2014-01-15
上傳用戶:bruce
A collection of math routines including 8-bit, 16-bit, 32-bit signed and unsigned addition, subtraction, multiplication, and division. Very nice code library with heavy in-line documentation! Been looking for multi-byte divide? Here it is.
標簽: bit collection including addition
上傳時間: 2015-05-17
上傳用戶:cursor
abel Tool Sample Requires: Visual Basic 6 and MapObjects 2.x Data: redlands.shp (Redlands sample data set from MO 2.x) Interactive Labeling Tool If the check box is checked, then the mouse down location will search for the closest line, and label it with the street name. If the check box is not checked, then the mouse down will turn into a pan/zoom tool. There is a slider bar to control the search tolerance in screen pixels for the labeling.
標簽: MapObjects Requires Redlands redlands
上傳時間: 2013-12-17
上傳用戶:sunjet
數字運算,判斷一個數是否接近素數 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上傳時間: 2015-05-21
上傳用戶:daguda
TIMER.ASM ********* [ milindhp@tifrvax.tifr.res.in ] Set Processor configuration word as = 0000 0000 1010 b. a] -MCLR tied to VDD (internally). b] Code protection off. c] WDT disabled. d] Internal RC oscillator [4 MHZ].
標簽: configuration Processor milindhp tifrvax
上傳時間: 2015-05-24
上傳用戶:wqxstar
2^x mod n = 1 acm競賽題 Give a number n, find the minimum x that satisfies 2^x mod n = 1. Input One positive integer on each line, the value of n. Output If the minimum x exists, print a line with 2^x mod n = 1. Print 2^? mod n = 1 otherwise. You should replace x and n with specific numbers. Sample Input 2 5 Sample Output 2^? mod 2 = 1 2^4 mod 5 = 1
標簽: mod satisfies minimum number
上傳時間: 2015-06-02
上傳用戶:qlpqlq