Page 2 of 2

Posted: Tue Mar 09, 2004 2:23 am
by junbin
This question is not very well formed.. the number of sharps/flats that the judge matches is more than the number listed.. my code uses:

if (!strcmp(note, "a")) {
return 0;
} else if (!strcmp(note, "a#") || !strcmp(note, "bb")) {
return 1;
} else if (!strcmp(note, "b") || !strcmp(note, "cb")) {
return 2;
} else if (!strcmp(note, "c") || !strcmp(note, "b#")) {
return 3;
} else if (!strcmp(note, "c#") || !strcmp(note, "db")) {
return 4;
} else if (!strcmp(note, "d")) {
return 5;
} else if (!strcmp(note, "d#") || !strcmp(note, "eb")) {
return 6;
} else if (!strcmp(note, "e") || !strcmp(note, "fb")) {
return 7;
} else if (!strcmp(note, "f") || !strcmp(note, "e#")) {
return 8;
} else if (!strcmp(note, "f#") || !strcmp(note, "gb")) {
return 9;
} else if (!strcmp(note, "g")) {
return 10;
} else if (!strcmp(note, "g#") || !strcmp(note, "ab")) {
return 11;



I believe fb, ab and some others are not listed by the question.

346 GETTING CHORDED

Posted: Wed Mar 30, 2005 7:44 pm
by daveon
There is input with "bb" which is B flat.
:wink:

Posted: Wed Apr 12, 2006 5:24 pm
by Moha
After so many WA, I submitted the judge code for this problem, but It got WA too?! I don't know what should i do!

Posted: Tue Jan 30, 2007 10:43 pm
by Carlos
All of them are listed were listed by the question. I've removed all of them who didn't apply.

Re: 346 - Getting Chorded

Posted: Tue Jul 05, 2016 2:47 am
by metaphysis
The problem statement of PDF version is bad, not clear enough.