Modern painting is often performed in dark rooms (this is why so many
modern painters fall asleep while working on their latest masterpiece).
Modern painting is also often an activity that painters enjoy in groups, but only up to a certain number of people. Hence the problem: it can get difficult to tell how many painters are already in a dark room - does the painter want to enter, or not? The trivial and traditional solution to this problem is to give a whistle to each painter. Each painter will blow their whistle every once in a while, when no one else is whistling. |
![]() http://commons.wikimedia.org/wiki/File:Pfeifenschnur.jpg |
To check whether a room is overcrowded or not, you only have to listen for a while and count how many different whistles you can hear.
Given a long wav file with a large number of beeps. Each beep has the same length and the gap between two beeps is the same (but this magic length constant may change between files). Beep frequencies are always rounded to the next 100 Hz.
Your task is to count how many different frequency beeps are in the file.
2