346 - Getting Chorded

All about problems in Volume 3. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

junbin
Experienced poster
Posts: 174
Joined: Mon Dec 08, 2003 10:41 am

Post by junbin » Tue Mar 09, 2004 2:23 am

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.

daveon
Experienced poster
Posts: 229
Joined: Tue Aug 31, 2004 2:41 am
Location: TORONTO, CANADA

346 GETTING CHORDED

Post by daveon » Wed Mar 30, 2005 7:44 pm

There is input with "bb" which is B flat.
:wink:

Moha
Experienced poster
Posts: 216
Joined: Tue Aug 31, 2004 1:02 am
Location: Tehran
Contact:

Post by Moha » Wed Apr 12, 2006 5:24 pm

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!

User avatar
Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos » Tue Jan 30, 2007 10:43 pm

All of them are listed were listed by the question. I've removed all of them who didn't apply.
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.

metaphysis
Experienced poster
Posts: 128
Joined: Wed May 18, 2011 3:04 pm

Re: 346 - Getting Chorded

Post by metaphysis » Tue Jul 05, 2016 2:47 am

The problem statement of PDF version is bad, not clear enough.

Post Reply

Return to “Volume 3 (300-399)”