University of Toronto ACM-ICPC Tryouts 2012
Leafy Lee likes leaves. He also likes interleaving things. So he definitely likes interleaving leaves.
Lee starts with two piles of
Every leaf has a (possibly non-unique) type, which can be represented as an uppercase letter. A pile of leaves can then be described as a string, giving the types of its leaves from top to bottom.
There are
Input Specification
Line 1: 1 integer,
For each scenario:
Line 1: 1 integer,
Line 2:
Line 3:
Output Specification
For each scenario:
Line 1:
Sample Input
2
1
A
B
3
ZEO
NXF
Sample Output
BA
FOXENZ
Explanation of Sample
In the first scenario, Lee will put down the A
leaf first, and then the
B
leaf on top of it. The resulting pile, then, will contain leaves BA
from top to bottom.
In the second scenario, Lee will put down the Z
from the first pile,
followed by the N
from the second pile, followed by the E
from the first
pile, and so on. The final pile will contain leaves FOXENZ
from top to
bottom.
Comments
Is input specification missing the description about Line 4 being the length of the leaf strings? (followed by the leaf strings)
Line 1: 1 integer,

uppercase letters, describing the leaves in the first pile
uppercase letters, describing the leaves in the second pile
Line 2:
Line 3:
It says
uppercase letters, so it's implicit that 
is the length of the strings.