[160:促销计算 题目描述 用递归的方法求 f(n) = 1×1 + 2×2 + 3×3 +……+ n×n 样例输入 输入数字n 1 3 样例输出 输出结果 f(n) 1 14 代码示例 #include <stdio.h> long DG(int m); int main() {