a011. 00494 - Kindergarten Counting Game
Tags : 字串處理
Accepted rate : 7182人/9210人 ( 78% ) [非即時]
評分方式:
Tolerant

最近更新 : 2012-11-13 23:52

Content

算一算每行有幾個字(word)。

Word的定義是連續的字元(letter: A~Z a~z)所組成的字。

Input
一段文字(string)
Output
字數(int)
Sample Input #1
Hello everybody!!
This is school principal speeking.
Sample Output #1
2
5
測資資訊:
記憶體限制: 512 MB
公開 測資點#0 (100%): 1.0s , <1K
Hint :
* 中文翻譯:Lucky 貓 * 讀取整行 getline(cin, string) * ACM: Q494
Tags:
字串處理
出處:
UVa494

Status Forum 排行

ID User Problem Subject Hit Post Date
33150 mengchiehlin ... (unknown) a011
regex 搜尋
724 2022-12-05 18:10
30975 u010735@tciv ... (35盧亞朋) a011
解題思路
1681 2022-06-27 13:59
30716 fruitbear198 ... (大叔學程式) a011
運用正規表示式
1419 2022-06-08 19:16
29568 wer12369qaz1 ... (dentr) a011
java 極簡單解
592 2022-03-12 16:56
26222 406490150@gm ... (我是朱朱) a011
1140 2021-07-25 01:22