輸入一個字典(用******結尾),然後再輸入若干單詞。每輸入一個單詞w,你都需要在字典中找出所有可以用w的字母重排後得到的單詞,並按照字典序從小到大的順序在一行中輸出(如果不存在,輸出:()。輸入單詞之間用空格或空行隔開,且所有輸入單詞都由不超過6個小寫字母組成。注意,字典中的單詞不一定按字典序排列。範例輸入:tarp given score refund only trap work earn course pepper part ******resco nfudre aptr sett
October 4, 2010(描述圖表)As is shown in the table above, dramatic changes have taken place in the number of the students pursuing a post-graduate degree in these 5 years.The most obvious changes happend in 2005 and 2008.We can see that the number is
字串替換時間限制:3000 ms | 記憶體限制:65535 KB難度:2描述編寫一個程式實現將字串中的所有"you"替換成"we"輸入輸入包含多行資料 每行資料是一個字串,長度不超過1000 資料以EOF結束輸出對於輸入的每一行,輸出替換後的字串範例輸入you are what you do範例輸出we are what we do第一次想的方法:#include<stdio.h>#include<string.h>char
兔子的煩惱(二)時間限制:1000 ms | 記憶體限制:65535 KB難度:3描述在一座山上有n個山洞(每個洞從0~n-1分別編號),這山上有一隻兔子躲在山洞裡,有一隻狼,從編號為0的山洞開始入洞,每隔m個洞,再次入洞抓兔子,現在兔子想知道是否有能避免這場災難的山洞?例如:m=2 and n=6,
October 5, 2010(網上購書成為時尚)As e-commerce becomes a part of our daily life, buying books on the Internet has come into fashion worldwidely due to its obvious advantages.Compared with the traditional way of visiting bookstores and picking one from
在學習一門新的程式語言的唯一途徑就是使用它編寫程式。一、 main() 函數:函數的命名沒有限制,但main 是一個特殊的函數名,每一個程式都是從main()函數的七點開始執行的,這意味著每個程式都必須在某一個位置包含一個main函數。如果沒有 main 函數 編譯不過去 將會提示如下:二、資料類型資料類型的大小取決於具體的機器。整數除法的操作將執行舍位,結果的小數部分都會被捨棄。5/9=0兩個運算元為int 執行整數操作一個為為float 一個為 int 在開始之前 int 轉化為
September 23, 2010A great many people presume upon a reward when conducting a good deed. / It is widely believed by many people that doing a good deed just gives them the right to ask for some rewards. Anyway, sometimes doing a good deed will make
October 2, 2010 In recent decades, (1)with the rapid development of advanced information technology, E-books have found/made their way into most people's daily life and have gained increasing popularity among common people. (2)information