Around and Around We Go: Difference between revisions
Jump to navigation
Jump to search
imported>Kmk21 Created page with "This problem asks us to print out the words to a round in a certain way such that the two voices line up properly. It is 100% about formatting output correctly. # store the s..." |
(No difference)
|
Revision as of 03:24, 2 November 2017
This problem asks us to print out the words to a round in a certain way such that the two voices line up properly. It is 100% about formatting output correctly.
- store the start times for each syllable of each voice in their own queue.
- While printing, pop whichever syllable comes next, or both, if required. Push underscores to any lines which are not printed
Note: be sure to add enough underscores to fill up time for long syllables (the third print condition in the problem statement)