Home
Problem Set
Training
Contest
Homework
Record
Ranking
Login
Language
English
한국어
简体中文
正體中文
#T1158. 求 1+2+3+...
ID: 681
Type: Default
1000ms
128MiB
Tried: 77
Accepted: 54
Difficulty: 1
Uploaded By:
Csvoner
求 1+2+3+...
题目描述
用递归的方法求
1
+
2
+
3
+
…
…
+
N
1+2+3+……+N
1
+
2
+
3
+
……
+
N
的值。
输入
输入
N
N
N
。
输出
输出和。
样例
5
15
Login to Submit
Files
Statistics
CLOSE
SIGN IN
Using your XAZXOJ universal account
Username
Password
Remember me
Forgot password or username?