시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1079 502 426 46.762%

문제

e는

\[e=\sum_{i=0}^{n} {\frac{1}{i!}}\]

이다. 여기서 n은 무한대이다.

매우 작은 n에 대해서, e의 근사값을 구해보자.

출력

아래 결과와 같은 형식으로 e의 근사값을 n = 0부터 9까지 출력한다. 

예제 입력 1


						

예제 출력 1

n e
- -----------
0 1
1 2
2 2.5
3 2.666666667
4 2.708333333
W3sicHJvYmxlbV9pZCI6IjYzNzYiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJlIFx1YWNjNFx1YzBiMCIsImRlc2NyaXB0aW9uIjoiPHA+ZVx1YjI5NDxcL3A+XHJcblxyXG48cD5cXFtlPVxcc3VtX3tpPTB9XntufSB7XFxmcmFjezF9e2khfX1cXF08XC9wPlxyXG5cclxuPHA+XHVjNzc0XHViMmU0LiBcdWM1ZWNcdWFlMzBcdWMxMWMgblx1Yzc0MCBcdWJiMzRcdWQ1NWNcdWIzMDBcdWM3NzRcdWIyZTQuPFwvcD5cclxuXHJcbjxwPlx1YjllNFx1YzZiMCBcdWM3OTFcdWM3NDAgblx1YzVkMCBcdWIzMDBcdWQ1NzRcdWMxMWMsIGVcdWM3NTggXHVhZGZjXHVjMGFjXHVhYzEyXHVjNzQ0IFx1YWQ2Y1x1ZDU3NFx1YmNmNFx1Yzc5MC48XC9wPlxyXG4iLCJpbnB1dCI6IiIsIm91dHB1dCI6IjxwPlx1YzU0NFx1Yjc5OCBcdWFjYjBcdWFjZmNcdWM2NDAgXHVhYzE5XHVjNzQwIFx1ZDYxNVx1YzJkZFx1YzczY1x1Yjg1YyBlXHVjNzU4IFx1YWRmY1x1YzBhY1x1YWMxMlx1Yzc0NCBuID0gMFx1YmQ4MFx1ZDEzMCA5XHVhZTRjXHVjOWMwIFx1Y2Q5Y1x1YjgyNVx1ZDU1Y1x1YjJlNC4mbmJzcDs8XC9wPlxyXG4iLCJoaW50IjoiIiwib3JpZ2luYWwiOiIwIiwicHJvYmxlbV9sYW5nX2NvZGUiOiJcdWQ1NWNcdWFkNmRcdWM1YjQifSx7InByb2JsZW1faWQiOiI2Mzc2IiwicHJvYmxlbV9sYW5nIjoiMSIsInRpdGxlIjoidSBDYWxjdWxhdGUgZSIsImRlc2NyaXB0aW9uIjoiPHA+QSBzaW1wbGUgbWF0aGVtYXRpY2FsIGZvcm11bGEgZm9yIGUgaXMmbmJzcDs8XC9wPlxyXG5cclxuPHA+XFxbZT1cXHN1bV97aT0wfV57bn0ge1xcZnJhY3sxfXtpIX19XFxdPFwvcD5cclxuXHJcbjxwPndoZXJlIG4gaXMgYWxsb3dlZCB0byBnbyB0byBpbmZpbml0eS4gVGhpcyBjYW4gYWN0dWFsbHkgeWllbGQgdmVyeSBhY2N1cmF0ZSBhcHByb3hpbWF0aW9ucyBvZiBlIHVzaW5nIHJlbGF0aXZlbHkgc21hbGwgdmFsdWVzIG9mIG4uJm5ic3A7PFwvcD5cclxuIiwiaW5wdXQiOiIiLCJvdXRwdXQiOiI8cD5PdXRwdXQgdGhlIGFwcHJveGltYXRpb25zIG9mIGUgZ2VuZXJhdGVkIGJ5IHRoZSBhYm92ZSBmb3JtdWxhIGZvciB0aGUgdmFsdWVzIG9mIG4gZnJvbSAwIHRvIDkuIFRoZSBiZWdpbm5pbmcgb2YgeW91ciBvdXRwdXQgc2hvdWxkIGFwcGVhciBzaW1pbGFyIHRvIHRoYXQgc2hvd24gYmVsb3cuJm5ic3A7PFwvcD5cclxuIiwiaGludCI6IiIsIm9yaWdpbmFsIjoiMSIsInByb2JsZW1fbGFuZ19jb2RlIjoiXHVjNjAxXHVjNWI0In1d

출처

ACM-ICPC > Regionals > North America > Greater New York Region > 2000 Greater New York Programming Contest A번

  • 문제를 번역한 사람: baekjoon
  • 문제의 오타를 찾은 사람: songuno1

채점

  • 예제는 채점하지 않는다.