The set of all possible submarine routes is countable (velocity vector + position at time 0). Let's assume we have an enumeration of that set. Now it's easy to bomb them all. At time 1 we bomb the point where submarine 1 is at time 1, at time 2 we bomb the point where submarine 2 is at time 2, and so on.