SOJ.Letters and Words
来源:互联网 发布:java基础测试题及答案 编辑:程序博客网 时间:2024/06/05 23:02
Letters and Words
题目描述
Calculate the number of letters (including white spaces but excluding line breaks) and the number of words in the given paragraph.
The input consists of only alphabets and white spaces.
样例输入
Hello world Welcome to SYSUa a a
样例输出
Letters: 33Words: 8
提示
Use cin.get() to read the paragraph.
Use istringstream strm(string) to obtain a string stream. The string stream can help you to read all string blocks in a simple way.
没什么好介绍的,一道作业题。
0 0
- SOJ.Letters and Words
- soj 11599. Tight words
- cf443A Anton and Letters
- A. Anton and Letters
- Anton and Letters
- Codeforces Anton and Letters
- B. Polycarp and Letters
- Polycarp and Letters
- B. Polycarp and Letters
- SOJ.Alice and Bob
- SOJ.Concatenation and substring
- sicily 1050.Numbers and Letters
- 443A - Anton and Letters
- SOJ 3254: Rain and Fgj
- LETTERS
- Greetings in Letters and E-Mail Messages
- Closings in Letters and E-Mail Messages
- Codeforces 443A Anton and Letters(水题)
- C++编写Config类读取配置文件
- 80端口被占用情况下,安卓连接wampserver
- java反射调用指定jar包中的类和方法
- gem5学习方法汇总,How to start gem5?
- Java学习之路一
- SOJ.Letters and Words
- matlab GUI之通用对话框【转载】
- Lucene+paoding 使用"庖丁解牛" 构建Analyzer paoding
- 2.2.5 RemoveDuplicatesfromSortedListII.h
- android greenDao使用
- SQL Server之dbo
- Hadoop
- MyEclipse下java文件的图标是空心的J
- 复习笔记java