标签:des style http io ar color os sp for
A | A#=Bb | B | C | C#=Db | D | D#=Eb | E | F | F#=Gb | G | G#=Ab |
Ab minor | A# major | A# minor | C# major | Db minor |
D# major | D# minor | Gb major | Gb minor | G# major |
Ab minor D# major G minor
Case 1: G# minor Case 2: Eb major Case 3: UNIQUE
#include<stdio.h> #include<string.h> int main() { char a[10],s[10];//数组开大点,否则不会过!破题。 int kase=1; while(scanf("%s %s",a,s)!=EOF) { printf("Case %d: ",kase++); if(!strcmp(a,"A#")) printf("Bb %s\n",s); else if(!strcmp(a,"Bb")) printf("A# %s\n",s); else if(!strcmp(a,"C#")) printf("Db %s\n",s); else if(!strcmp(a,"Db")) printf("C# %s\n",s); else if(!strcmp(a,"D#")) printf("Eb %s\n",s); else if(!strcmp(a,"Eb")) printf("D# %s\n",s); else if(!strcmp(a,"F#")) printf("Gb %s\n",s); else if(!strcmp(a,"Gb")) printf("F# %s\n",s); else if(!strcmp(a,"G#")) printf("Ab %s\n",s); else if(!strcmp(a,"Ab")) printf("G# %s\n",s); else printf("UNIQUE\n"); } return 0; }
A Famous Music Composer(南阳oj25)(一道无聊的英文题)
标签:des style http io ar color os sp for
原文地址:http://blog.csdn.net/hdd871532887/article/details/41714233