#include<stdio.h>
#include<math.h>
int main()
{
double f;
int i;
char *o[12] = { "A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#" };
for (i = 0; i <= 24; i++) {
f
= 440.0 * pow(2.0, (double) i
/ 12.0); printf("[%-2s] = %8.3f Hz\n", o
[i
% 12], f
); }
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KI2luY2x1ZGU8bWF0aC5oPgppbnQgbWFpbigpCnsKICAgIGRvdWJsZSBmOwogICAgaW50IGk7CiAgICBjaGFyICpvWzEyXSA9IHsgIkEiLCAiQSMiLCAiQiIsICJDIiwgIkMjIiwgIkQiLCAiRCMiLCAiRSIsICJGIiwgIkYjIiwgIkciLCAiRyMiIH07CiAgICBmb3IgKGkgPSAwOyBpIDw9IDI0OyBpKyspIHsKICAgICAgICBmID0gNDQwLjAgKiBwb3coMi4wLCAoZG91YmxlKSBpIC8gMTIuMCk7CiAgICAgICAgcHJpbnRmKCJbJS0yc10gPSAlOC4zZiBIelxuIiwgb1tpICUgMTJdLCBmKTsKICAgIH0KICAgIHJldHVybiAwOwp9Cg==