Loading [MathJax]/jax/output/HTML-CSS/jax.js
Login
Register
NOI.AC
Home
Contests
Problems
Submissions
Hack!
Blogs
2023 全国信息学夏令营
New
1S
512MB
Good
Bad
[
-5
]
#1043. 阶乘数列求和
Statistics
Statement
Submit
Custom Test
题目描述
求
S
n
=
1
!
+
2
!
+
3
!
+
4
!
+
5
!
+
…
+
n
!
的值,其中
n
是一个整数。(
1
≤
n
≤
20
)
输入格式
一个整数
n
输出格式
S
n
的值
样例输入
5
样例输出
153
Source code:answer
Language
C++
Python2.7
Java7
C++11
Python3
Java8
C
Pascal
Upload by editor
Upload from local
use advanced editor
Browse
Submit
Source code:answer
Language
C++
Python2.7
Java7
C++11
Python3
Java8
C
Pascal
Upload by editor
Upload from local
use advanced editor
Browse
Text file:input.txt
Upload by editor
Upload from local
use advanced editor
Browse
Run