题目名称
Talented Guitar Virtuoso!
问题描述
A talented guitarist has encountered a problem, please help him solve it. Known that a guitar has six strings, and the open string pitches from the thinnest to the thickest are E, B, G, D, A, E (as shown in the diagram). Now, this talented guitarist wants to figure out the positions on the fretboard for a certain note and its identical pitches according to the twelve-tone equal temperament. Please assist him. (It is assumed that the guitarist is playing in the key of C major.)
A and B are one fret apart on the guitar fretboard, B and C are adjacent, C and D are adjacent one fret apart, D and E are adjacent one fret apart, E and F are adjacent, F and G are adjacent one fret apart, and G and A are adjacent one fret apart (as shown in the diagram, only the first three frets are displayed)
E--|--F--|-----|--G--|-------------------|-----|
B--|--C--|-----|--D--|-------------------|-----|
G--|-----|--A--|-----|-------------------|-----|
D--|-----|--E--|--F--|-------------------|-----|
A--|-----|--B--|--C--|-------------------|-----|
E--|--F--|-----|--G--|-------------------|-----|
0--|--1--|--2--|--3--|-------------------|--20--|
输入说明
input a letter that represents the note the talented guitarist is familiar with.
输出说明
Output this note in the order from the first string to the sixth string, along with the positions where the same note is located (excluding open string notes, with the strings arranged from top to bottom as 1-6).
输入样例
A
输出样例
(1,5)
(1,17)
(2,10)
(3,2)
(3,14)
(4,7)
(4,19)
(5,12)
(6,5)
(6,17)