#include <stdio.h> #include <string.h> #include <algorithm> using namespace std; int main() { int i, j; long long int sum = 0; for (i = 1; i <= 100; i++) { int num = 0; for (j = 1; j <= i; j++) num += j; sum += num; } printf("%lld\n", sum); }