fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. ios_base::sync_with_stdio(false);
  7. cin.tie(NULL);
  8.  
  9. long long n;
  10. cin >> n;
  11. long long m = (n - 2) / 2;
  12. cout << n * m * (m - 1) / 2;
  13. }
Success #stdin #stdout 0.01s 5264KB
stdin
Standard input is empty
stdout
106931798020285376