Skip to content

drinkingsong

bradendubois edited this page Nov 24, 2021 · 7 revisions

Drinking Song

ID: drinkingsong

Difficulty: 2.4

CPU Time: 1 second

Memory: 1024 MB

Solution

The problem itself is trivial, just printing out certain verses, substituting the beverage name, etc. but the specific cases ("Take it down" vs. "Take one down", etc.) can be difficulty to check all of; this problem is a great reason why, in contest settings, one should be taking some sample output and using a command like ``diff` to guarantee that your output is what you expect.

Clone this wiki locally