a011. 00494 - Kindergarten Counting Game
Tags : 字串處理
Accepted rate : 7858人/10080人 ( 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
46044 shengfengli4 ... (李昇峰) a011
42 2025-05-12 22:38
41445 phantom284gj ... (許宸祐) a011
需注意的小細節
1302 2024-07-27 12:17
41444 phantom284gj ... (許宸祐) a011
注意得小細節
657 2024-07-27 12:12
40984 joccc014@gma ... (czone) a011
Python 想法&思路
789 2024-06-22 18:33
33150 mengchiehlin ... (unknown) a011
regex 搜尋
1554 2022-12-05 18:10