Counting Lines
Time limit1sMemory limit128 MB
Read all input lines, including empty ones, and print how many there are.
- Level
Easy1 of 10
- Topics
- Implementation, String
- Solved
- No attempts yet
Problem
Write a program that counts the number of lines given as input.
Input
Several lines are given as input. Each line consists of at most 100 characters. Empty lines may be included.
Output
Print the number of lines given as input.