1 solutions

  • 0
    @ 2025-12-3 17:06:18

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    long long a,b;
    int main()
    {
        cin>>a>>b;
    	cout<<a*b*(b+1)/2;
        return 0;
    }
    
    • 1

    Information

    ID
    949
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    3
    Accepted
    2
    Uploaded By