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
上傳用戶:離殤
Filename: main.c * Description: A simple test program for the CRC implementations. * Notes: To test a different CRC standard, modify crc.h. * * * Copyright (c) 2000 by Michael Barr. This software is placed into * the public domain and may be used for any purpose. However, this * notice must not be changed or removed and no warranty is either * expressed or implied by its publication or distribution.
標(biāo)簽: test implementations Description Filename
上傳時間: 2015-02-02
上傳用戶:leehom61
輸入一個任意大小的迷宮,用棧求出一條走出迷宮的路徑,并 顯示在屏幕上。 程序?qū)崿F(xiàn): 可以實現(xiàn)載入迷宮和保存迷宮,附帶文件中有4個測試迷宮路徑的 文件test1~4.dd。請將這些文件拷貝到TC當(dāng)前目錄下,或者在載 入時寫明完全路徑。由于屏幕大小的限制,當(dāng)用戶自己輸入迷宮 時一定要注意:迷宮大小是有限制的,不小于4*3,不大于30*20。 否則會出現(xiàn)錯誤信息。輸入開始時全是墻,用上下左右鍵移動, 用Del鍵刪除墻,形成通路,用Enter鍵添加墻。輸入結(jié)束時可以 將迷宮保存下來,以dd為擴展名。輸入完畢時用F9鍵來得到結(jié)果, 找到路徑時,屏幕下方會出現(xiàn)Path found,否則出現(xiàn)Path not found。 程序經(jīng)Turbo C 2.0編譯調(diào)試成功。運行時不用添加任何運行庫。 不可以在VC上編譯。
上傳時間: 2014-01-10
上傳用戶:thinode
* This function positions the cursor at the specified * x,y coordinate. It uses the ANSI standard ESCAPE * * sequence to produce the desired effect. Its not the * * fastest way to position the cursor, but perhaps the * * most portable. *
標(biāo)簽: the coordinate positions specified
上傳時間: 2015-02-24
上傳用戶:chenjjer
SPLASH is a c++ class library that implements many of the Perl constructs and data types, including extensive regex regular expression pattern matching. For those not familiar with Perl, it is an excellent scripting language by Larry Wall and is available for most platforms. This Class library provides List, String, Regular Expression, and text manipulation handling capabilities based on those provided in Perl
標(biāo)簽: implements constructs including library
上傳時間: 2013-12-07
上傳用戶:1583060504
數(shù)字密碼引爆器的輸入描述:1、 在開始輸入密碼以前的等待狀態(tài),首先要按READY鍵,表示目前準(zhǔn)備就緒,可以輸入數(shù)字密碼;2、 當(dāng)引爆事件發(fā)生后,應(yīng)該回到等待狀態(tài),設(shè)置WAIT_T鍵;3、 如果輸入密碼不正確,此時要操作READY和WAIT_T是不起作用的,必須由設(shè)計人員重新設(shè)置到等待狀態(tài),設(shè)置SETUP鍵,SETUP為內(nèi)部按鍵,操作人員應(yīng)該不能接觸;4、 確定密碼輸入后,要設(shè)計一個點火按鍵FIRE;
上傳時間: 2015-03-17
上傳用戶:chenlong
此代碼可以實現(xiàn)以下功能 使用wordappalication 組件,代碼如下 啟動Word時用如下代碼: begin try Wordapplication.Connect except MessageDlg(’Word may not be installed’, mtError, [mbOk], 0) Abort end Wordapplication.Visible := True WordApplication.Caption := ’Delphi automation’ end
標(biāo)簽: wordappalication 代碼
上傳時間: 2014-01-22
上傳用戶:Divine
仿真步驟如下: 1、把3個帖子的內(nèi)容分別保存為51t9py.c,51t9py_indexa.h,5py_mb.h,放在同一目錄下,將51t9py.c加入工程編譯 2、由于Keil的模擬串口是單字節(jié)顯示,漢字顯示為亂碼,所以要加掛RICHWIN或RichView這種會重新刷新顯示的中文平臺,或手工刷新屏幕,所以請先到 http://www.pchome.net/dl/chinese.htm 下載RichView,安裝運行 3、在Keil環(huán)境下可以直接按“Ctrl+F5”鍵仿真,按“F5”全速運行,切換到在串口依次輸入: // 64*.6 426***.5 98*.7 936.3 586.1 4826*.1 9464*.7 64*.6試試:-) 4、按鍵對應(yīng)(根據(jù)我自己的手機設(shè)置的,全部在PC的小鍵盤操作):
標(biāo)簽: py_indexa py_mb 51 py
上傳時間: 2013-12-15
上傳用戶:sk5201314
程序目的: 輸入一個任意大小的迷宮,用棧求出一條走出迷宮的路徑,并 顯示在屏幕上。 程序?qū)崿F(xiàn): 可以實現(xiàn)載入迷宮和保存迷宮,附帶文件中有4個測試迷宮路徑的 文件test1~4.dd。請將這些文件拷貝到TC當(dāng)前目錄下,或者在載 入時寫明完全路徑。由于屏幕大小的限制,當(dāng)用戶自己輸入迷宮 時一定要注意:迷宮大小是有限制的,不小于4*3,不大于30*20。 否則會出現(xiàn)錯誤信息。輸入開始時全是墻,用上下左右鍵移動, 用Del鍵刪除墻,形成通路,用Enter鍵添加墻。輸入結(jié)束時可以 將迷宮保存下來,以dd為擴展名。輸入完畢時用F9鍵來得到結(jié)果, 找到路徑時,屏幕下方會出現(xiàn)Path found,否則出現(xiàn)Path not found。 程序經(jīng)Turbo C 2.0編譯調(diào)試成功。運行時不用添加任何運行庫。 不可以在VC上編譯。
上傳時間: 2013-12-29
上傳用戶:z1191176801
The Kannel Open Source WAP and SMS gateway works as both an SMS gateway, for implementing keyword based services via GSM text messages, and a WAP gateway, via UDP. The SMS part is fairly mature, the WAP part is early in its development. In this release, the GET request for WML pages and WMLScript files via HTTP works, including compilation for WML and WMLScript to binary forms. Only the data call bearer (UDP) is supported, not SMS.
標(biāo)簽: gateway implementing SMS keyword
上傳時間: 2014-01-11
上傳用戶:2525775
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1