Responsive image

Problem 1066 --C语言程序设计教程(第三版)课后习题6.4

1066: C语言程序设计教程(第三版)课后习题6.4

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 1927  Solved: 920
[Submit][Status][Web Board][Creator:]

Description

求Sn=1!+2!+3!+4!+5!+…+n!之值,其中n是一个数字。

Input

n

Output

Sample Input

5

Sample Output

153

HINT

 long long

Source

 

[Submit][Status]
ACM算法攻关部
  • Anything about this OnlineJudge, Please Contact Administrator. Click add QQ

    OJ system based on HUSTOJ Project , UI based on Twitter Bootstrap

    Copyright 2016 ACM算法攻关部
    关于网站改版