2016-07-03 Problem Solving►UVa UVa 10302 - Summation of Polynomials Contents 1. Problem2. Solution3. Code Problem題目網址中文網址 SolutionDP 建表。 CodeUVa 1030212345678910111213#include<cstdio>int main(){ long long ans[50001] = {}; for (int i = 1; i < 50001; i++) ans[i] = ans[i - 1] + (long long)i*i*i; int n; while (scanf("%d", &n) != EOF) printf("%lld\n", ans[n]); return 0;} Newer UVa 640 - Self Numbers Older UVa 10168 - Summation of Four Primes