Skip to content

Instantly share code, notes, and snippets.

@olistik
Created April 4, 2012 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olistik/2300232 to your computer and use it in GitHub Desktop.
Save olistik/2300232 to your computer and use it in GitHub Desktop.
Mikamai Coding Contest #0

Mikamai Coding Contest #0: Combinations

Description

The given input (STDIN/filename) is composed by a variable number of lines. Each input line represents the possible values for the n-th character of each output line. The number of lines of the input is equal to the length of each output line.

For example, given the following input:

ps
o
s
t
ae

The desired output is:

posta
poste
sosta
soste
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment