

下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、BOI2002Tennis乒乓球俱樂BOI2002Tennis乒乓球俱樂1000GI (1GI 。假設(shè)運(yùn)動(dòng)員按照在輸入數(shù)據(jù)中期望比賽場數(shù)的1 到N 編號(hào)。 SCHEDULE(SCHEDULE( 33NON 和每個(gè)定點(diǎn)的度,要求構(gòu)造一個(gè)滿足要求的簡單圖。的點(diǎn),算法描述和證明要簡單一些3大的點(diǎn)連線,如AN 和每個(gè)定點(diǎn)的度,要求構(gòu)造一個(gè)滿足要求的簡單圖。的點(diǎn),算法描述和證明要簡單一些3大的點(diǎn)連線,如AB連線,但是已知解中,A,B 間卻沒有連線,相反的, A,C之間卻有邊相連,且D(B)D(C) (D表示定點(diǎn)的度 ZZBCA-CC-Z,B-ZA-B空間復(fù)雜度:O(N2),可以降至O(N)。程序1122
2、21 2121TennisThe Matchball tennis club is organizing a “game interest week” to attract new players to the club. As one of the attractions, they have asked some star players to play a few demo games. Each star has indicated the number of games he or she is willing to play. The organizers want the sta
3、rs to have some fun as well, thus they want to schedule the games so that TennisThe Matchball tennis club is organizing a “game interest week” to attract new players to the club. As one of the attractions, they have asked some star players to play a few demo games. Each star has indicated the number
4、 of games he or she is willing to play. The organizers want the stars to have some fun as well, thus they want to schedule the games so that no two players meet thanoncewith eachYour task is to writea program to help themmatch the players into pairs so thateach player his or her desired number of ga
5、mes and does not play twice or more against any other player. Of course, no player may play against himself or herself.InputOnthe firstline ofthe inputfile tennis.inisthe numberofplayers N(2=N=1000)andonfollowing N lines is the desired number of games to GI 1 N ) for each Assumethattheplayersarenumb
6、eredfrom1toNintheorderoftheirwishesintheinputOutputOn the first line of the output file tennis.outwrite NO SCHEDULE if itis notpossible to create schedulesothatthewishesofallplayersaresatisfied,orSCHEDULEifitis If a schedule exists, write it out on the following N lines. On each line write the indices of opponents for player whose desired number of games was indicated on the corresponding input line. On each line the indices must be in increasing order and separated by spaces. If solutionsexist,outputanyoneof33NO122In this task, a program receives points In this task, a
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 營養(yǎng)學(xué)飲食指南閱讀題
- 房車項(xiàng)目可行性研究報(bào)告
- 建筑設(shè)計(jì)咨詢服務(wù)合同
- 主管護(hù)師內(nèi)科護(hù)理復(fù)習(xí)試題有答案
- 餐飲行業(yè)智慧餐廳點(diǎn)餐系統(tǒng)方案
- 三農(nóng)產(chǎn)品加工設(shè)備操作培訓(xùn)作業(yè)指導(dǎo)書
- 智能財(cái)稅綜合實(shí)訓(xùn) 下篇 第五章工作領(lǐng)域三-任務(wù)二
- 寵物養(yǎng)護(hù)指南
- 分析工業(yè)生產(chǎn)中磁場對(duì)材料影響
- 三農(nóng)村居民信息服務(wù)與普及指南
- “三級(jí)”安全安全教育記錄卡
- 愛蓮說-王崧舟
- SolidWorks入門教程(很全面)PPT課件
- 2020飛山景區(qū)旅游開發(fā)運(yùn)營方案實(shí)操手冊
- 環(huán)境工程概預(yù)算(ppt)
- 新舊會(huì)計(jì)科目對(duì)照表
- 醫(yī)用耗材超常預(yù)警和評(píng)價(jià)制度
- 4S店三表一卡標(biāo)準(zhǔn)模板
- 【校本教材】《身邊的化學(xué)》高中化學(xué)校本課程
- 性格色彩培訓(xùn)-團(tuán)隊(duì)培訓(xùn)必備
- 【教學(xué)設(shè)計(jì)】審定新北師大版六年級(jí)下冊數(shù)學(xué)《圖形的運(yùn)動(dòng)》教學(xué)設(shè)計(jì)
評(píng)論
0/150
提交評(píng)論