Gum Gum for Jay Jay
Time limit1sMemory limit1024 MB
Count the lines in an input file of unknown length and print that count.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
You are lost in the museum and keep walking by a giant rock head that says "gum gum for jay jay" each time you walk by. Print out the number of times you have walked by the giant rock head after reading in the data file.
Input
The data file contains an unknown number of lines.
Output
Print the number of lines in the data file.