For this Question: There are n people participating in some contest, they start participating in x minutes intervals. That means the first participant starts at time 0, the second participant starts at time x, the third — at time 2⋅x, and so on. The duration of the contest is t minutes for each participant, so the first participant finishes the contest at time t, the second — at time t+x, and so on. When a participant finishes the contest, their dissatisfaction equals the number of participants that started the game (or starting it now) but haven't yet finished it.
Determine the sum of dissatisfaction of all participants.The input consists of three space separated integers n, t and x — the number of participants, the start interval and the contest duration.

<b>Constraints</b>
1 &le; n, x, t &le; 2⋅10<sup>9</sup>Print the total dissatisfaction of participants.<b>Sample Input 1</b>
4 2 5
<b>Sample Output 1</b>
5

<b>Sample Input 2</b>
3 1 2
<b>Sample Output 2</b>
3, I have written this Solution Code: #include<bits/stdc++.h>
 
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
#pragma GCC optimize("unroll-loops")
 
using namespace std;
void fastio() {ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);}
 
const int mod = 1000000007;
 
/*
-----------------------------------------------
  
  Author : Abhas
  
 

 
-----------------------------------------------
*/
 
#define int long long int
#define cint(n) int n;cin>>n;
#define PI 3.141592653589793238
#define ailoop(a,n) for(int i=0;i<n;i++) cin>>a[i];
#define loop(i,a,b) for(int i=a;i<b;i++)
#define swapf(dt) void swap(dt &a,dt &b) {dt temp=a;a=b;b=temp;}
#define vsort(v) sort(v.begin(),v.end())
#define asort(a,n) sort(a,a+n)
#define vi vector<int>
#define vvi vector<vector<int>>
#define pii pair<int,int>
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define precise(digits) fixed<<setprecision(digits)
#define debug(func) cerr<<#func<<" : "<<func<<endl;
#define endl "\n"
#define spc " "
 
// int power(int a, int b) {
//     if(b==0) return 1;
//     if(b&1) return a*pow(a,b-1);
//     else return pow(a*a,b/2);
// }
 
// bool issquare(int n) {
//     int temp = sqrt(n);
//     return temp*temp==n;
// }

void solution() {
    int n,x,t;
    cin>>n>>x>>t;
    int count=0;
    int m,p,o;

    m = min(n-1,t/x);
    if(m==0){
        cout<<0<<endl;
    }
    else{
        count = m*(m-1)/2 + m*(n-m);
    
    cout<<count<<endl;
    }

}

int32_t main() {
    auto start=chrono::system_clock::now();
    {
        fastio();
        int t = 1;
       // cin>>t;cin.ignore();
        for(int caseno=1;caseno<=t;caseno++) {
            // cout<<"Case #"<<caseno<<": ";
            solution();    
        }
    }
    auto end=chrono::system_clock::now();
    // chrono::duration<double> elapsed=end-start;cout<<"Time taken: "<<elapsed.count()<<" sec";	
    return 0;
}, In this Programming Language: C++, Now tell me if this Code is compilable or not?