14 solutions

  • 0
    @ 2023-11-10 22:22:05
    
    

    #include<bits/stdc++.h> using namespace std; #define int long long signed main() { int sum=0; for(int i=1;i<2021;i++) { for(int j=2;j<2021-i;j++) { int k=2021-i-j; if(k>1) sum+=(k-1)*(j-1); } } cout<<sum; return 0; }

    
    

    Information

    ID
    106
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    # Submissions
    513
    Accepted
    165
    Uploaded By