#include <math.h>
#include <stdio.h>
#include <string.h>
int main()
{
double x, f;
int y;
char buf[80];
for (x = -3.0; x <= 3.1; x += 0.2) {
f
= 1.0 / pow(2.0 * M_PI
, 0.5) * exp(-(x
* x
/ 2.0)); y = f * 100.0;
buf[y] = '\0';
printf("% 3.1f %.3f %s\n", x
, f
, buf
); }
return 0;
}
I2luY2x1ZGUgPG1hdGguaD4KI2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluKCkKewoJZG91YmxlCXgsIGY7CglpbnQJeTsKCWNoYXIJYnVmWzgwXTsKCglmb3IgKHggPSAtMy4wOyB4IDw9IDMuMTsgeCArPSAwLjIpIHsKCQlmID0gMS4wIC8gcG93KDIuMCAqIE1fUEksIDAuNSkgKiBleHAoLSh4ICogeCAvIDIuMCkpOwoJCXkgPSBmICogMTAwLjA7CgkJbWVtc2V0KGJ1ZiwgJyonLCB5KTsKCQlidWZbeV0gPSAnXDAnOwoJCXByaW50ZigiJSAzLjFmICUuM2YgJXNcbiIsIHgsIGYsIGJ1Zik7Cgl9CglyZXR1cm4gMDsKfQo=