b212. 99 彰雲嘉區資訊學科能力競賽(2010)|字串搜尋

中等學科能力競賽字串匹配大小寫轉換單字邊界教學回報錯誤

時間限制 5000 ms ・ 記憶體限制 256 MB

題目描述

題目內容

輸入一個英文關鍵單字,從下方原題指定T5.txt文章搜尋含有該單字的所有句子,不分大小寫,按原順序輸出。 複合字如web-based中的web可匹配;字內片段如Cobweb、website中的web不可匹配。句尾是句點,或問號後接雙引號。保留句子文字及標點。

原題指定的完整T5.txt

ProxEasy serves as a barrier between you and the rest of the internet. All traffic which goes through this web-based proxy server service becomes completely anonymous because it is being bounced through the ProxEasy network. Just like you see on the movies, where hackers bounce their connections through multiple servers to hide their true location, so too does this web proxy server service make you totally untraceable and anonymous on the WWW. It lets you hide your ip from prying eyes. Ever ask yourself "How do I hide my ip?" Perhaps you may have been wondering how to access blocked websites that your school or workplace are preventing you from surfing with their filters that block users from getting on certain sites. Well this proxy server will actually allow you to get on those websites with ease, and hide your ip address at the same time. Or check the directory. All you have to do is type in the URL or Web address of the sites you want to visit in the text box above and hit the "Go" button. Try ProxEasy now by typing a URL into the website address textbox on the form at the top of the page. I think you will like this web proxy server.

輸入說明

一行一個英文關鍵單字。使用題敘內固定文章,不需外部檔案。

輸出說明

每個匹配句子輸出一行,前綴依序為 1. 、2. 等。若無匹配,輸出 查無此字。

範例

輸入:

web

輸出:

1. All traffic which goes through this web-based proxy server service becomes completely anonymous because it is being bounced through the ProxEasy network.
2. Just like you see on the movies, where hackers bounce their connections through multiple servers to hide their true location, so too does this web proxy server service make you totally untraceable and anonymous on the WWW.
3. All you have to do is type in the URL or Web address of the sites you want to visit in the text box above and hit the "Go" button.
4. I think you will like this web proxy server.

原題與本站設定

99年彰雲嘉區複賽原題、官方測試答案。原題每題100分;本站採全通過制。原題未列數值化時間、記憶體限制,本站設定5秒、256MB。測資包含原範例、可核對的官方資料及自行生成資料,非完整官方測資;全部經獨立算法驗證。 OJ格式調整:原指定文章完整嵌入題敘,無須讀取外部T5.txt。本練習採原題所附這篇文章,未冒稱包含官方另附但全文未取得的T5_2.txt。測試覆蓋原文章所有不同單字及大小寫/非完整字片段。

輸入格式

一行一個英文關鍵單字。使用題敘內固定文章,不需外部檔案。

輸出格式

每個匹配句子輸出一行,前綴依序為 1. 、2. 等。若無匹配,輸出 查無此字。

測資說明

原範例、可核對官方資料與獨立驗證生成測資,非完整官方測資。

範例測資

範例輸入 1

web

範例輸出 1

1. All traffic which goes through this web-based proxy server service becomes completely anonymous because it is being bounced through the ProxEasy network.
2. Just like you see on the movies, where hackers bounce their connections through multiple servers to hide their true location, so too does this web proxy server service make you totally untraceable and anonymous on the WWW.
3. All you have to do is type in the URL or Web address of the sites you want to visit in the text box above and hit the "Go" button.
4. I think you will like this web proxy server.
請先登入後再提交程式碼

討論與題解

載入討論區…

更多