#2213. C++-求和(递归函数)
C++-求和(递归函数)
Background
Description
输入正整数n,通过递归函数求0~n的整数之和。
Format
Input
Output
Samples
100
5050
Limitation
1s, 1024KiB for each test case.
输入正整数n,通过递归函数求0~n的整数之和。
100
5050
1s, 1024KiB for each test case.
By signing up a PaiBlockly编程创客平台图形模块编程软件系统 universal account, you can submit code and join discussions in all online judging services provided by us.