Around and Around We Go

From programming_contest
Revision as of 03:24, 2 November 2017 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.

  1. store the start times for each syllable of each voice in their own queue.
  2. 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)