Back
Close

It makes a sound

Statement
Music sheets works as follow. The sheets is divided in notes, each line represents a specific note. And each note is place one after another depending on when they arrive Further more a sheet can be either {{treble}} Clef or {{bass}} Clef, each having a different placement of the notes A {{bass}} Clef note placement of {{[FEDCBAG]}} will look like this F - - - - - - ⠀⠀|[F] ⠀E⠀⠀⠀⠀⠀⠀⠀|[E] - - D - - - - ⠀⠀|[D] ⠀⠀⠀C⠀⠀⠀⠀⠀|[C] - - - - B - - ⠀⠀|[B] ⠀⠀⠀⠀A ⠀⠀⠀⠀|[A] - - - - - - G ⠀⠀|[G] While a {{treble}} Clef note placement of {{[FEDCBAG]}} will look like this - - D - - - ⠀⠀⠀⠀|[D] ⠀⠀⠀C ⠀⠀⠀⠀⠀⠀|[C] - - - - - B ⠀⠀⠀⠀|[B] ⠀⠀⠀⠀⠀ A ⠀⠀⠀|[A] - - - - - - - G ⠀⠀|[G] F ⠀⠀⠀⠀⠀⠀⠀⠀⠀|[F] - E - - - ⠀⠀⠀⠀⠀|[E] You job is given a series of Music notes and the type of Clef, output the music sheet

Input description
<<Line 1:>> [[n]] number of how many notes there are <<Line 2:>> String [[notes]] containing the series of notes that will be used <<Line 3:>> String [[clef]] depicting the type of clef being used

Output description
<<7 Line>> of [[n]] size depicting the music sheet

Constraints
0< [[N]] < 100

Game modes

Test cases
Biggest and Smallest Test
Input
3 DEB treble
Output
D - - - - B - - - - E -

Smallest and Biggest Validator
Input
3 EDB treble
Output
- D - - - B - - - E - -

Incremental Test
Input
7 GABCDEF bass
Output
- - - - - - F E - - - - D - - C - - B - - - - A G - - - - - -

Decremental Validator
Input
7 FEDCBAG bass
Output
F - - - - - - E - - D - - - - C - - - - B - - A - - - - - - G

DEADFACE Test
Input
8 DEADFACE treble
Output
D - - D - - - - C - - - - - - - - A A - - - - - - - - F - E - - - - - E

ECAFDAED Validator
Input
8 ECAFDAED treble
Output
- - - - D - - D C - - - - - - - - A A - - - - - - - - F E - - - - - E -

Double treble Test
Input
10 FFGGBBEEDD treble
Output
- - - - - - - - D D - - - - B B - - - - - - G G - - - - - - F F - - - - - - E E - -

Double bass Validator
Input
10 FFGGBBEEDD bass
Output
F F - - - - - - - - E E - - - - - - - - D D - - - - B B - - - - - - G G - - - - - -

Ode to joy Test
Input
23 BBCDDCBAGGABBAABBCDDCBA bass
Output
- - - - - - - - - - - - - - - - - - - - - - - - - - D D - - - - - - - - - - - - - D D - - - C C C C B B - - - - B - - - - B B - - B B - - - - B - A A A A A - - - - - - - - G G - - - - - - - - - - - - -

Ode to joy treble Validator
Input
23 BBCDDCBAGGABBAABBCDDCBA treble
Output
- - - D D - - - - - - - - - - - - - D D - - - C C C C B B - - - - B - - - - B B - - B B - - - - B - A A A A A - - - - - - - - G G - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Solution language

Solution

Stub generator input