// UVa 10302 - Summation of Polynomials #include <iostream> using namespace std; #define datatype unsigned long long int int main() { datatype x; while (cin >> x) { cout << x * x * (x + 1) * (x + 1) / 4 << endl; } return 0; }
No comments:
Post a Comment