求1+2+3.+...
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
用递归的方法求$1+2+3+……+N$的值。
Input Format
输入$N$。
Output Format
输出和。
5
15
递归和深度优先搜索(dfs)
- Status
- Done
- Problem
- 9
- Open Since
- 2026-5-16 0:00
- Deadline
- 2026-5-24 23:59
- Extension
- 24 hour(s)