eolymp
bolt
Try our new interface for solving problems
Problems

Sum of cubes

published at 4/10/24, 6:50:28 pm

include <iostream>

using namespace std; int main() { long long n; cin >> n; cout << ((n(n+1))/2)(n*(n+1))/2; }