#include #include using namespace std; char *staff[] = {"----|-\\-----------------------------------------------------------------------------+", " | } |", "----|-/-----------------------------------------------------|----|------------------|", " |/ 4 | | | | (@) #(@) |", "---/|-----------------------------------|----|----|----|----|----|--(@)--|----|-----|", " / | 4 | | | | | (@) #(@) | | | |", "-{--|-\\------------------|----|----|----|----|--(@)-#(@)------------|----|----|-----|", " \\_|_/ | | | | | (@) #(@) | |", "----|\\---------|----|----|----|--(@)------------------------------------------------+", " |_} | | (@) #(@) ", " (@) #(@) "}; map noteidx; char output[11][10000]; int nrcols=0; void write_clef(){ for(int i=0;i<11;++i) for(int j=0;j<12;++j) output[i][j]=staff[i][j]; nrcols=12; } void write_bar(){ for(int i=0;i<11;++i) for(int j=0;j<3;++j) output[i][nrcols+j]=staff[i][82+j]; nrcols+=3; } void write_note(int idx){ for(int i=0;i<11;++i) for(int j=0;j<5;++j) output[i][nrcols+j] = staff[i][ 12+5*idx+j ]; nrcols+=5; } int main() { noteidx["C"]=0; noteidx["C#"]=1; noteidx["D"]=2; noteidx["D#"]=3; noteidx["E"]=4; noteidx["F"]=5; noteidx["F#"]=6; noteidx["G"]=7; noteidx["G#"]=8; noteidx["A"]=9; noteidx["A#"]=10; noteidx["B"]=11; noteidx["C2"]=12; noteidx["C2#"]=13; int n; cin>>n; write_clef(); for(int i=0;i>note; write_note(noteidx[note]); } write_bar(); for(int i=0;i<11;++i){ for(int j=0;j