func_code_string: #include<bits/stdc++.h>   using namespace std;   #define ll long long int   #include<vector>   bool fun(pair<ll,ll>a,pair<ll,ll>b)   {       if((a.second>b.second))           return 1;       return 0;   }   bool chec(ll n)   {       ll x,c=n;       while(c)       {           x=c%10;           if(x!=0&&n%x!=0)           {               return false;           }           c=c/10;       }       return true;   }   int check(ll x)   {       ll sum=0;       while(x)       {           sum=sum+x%10;           x=x/10;       }       return sum;   }   ll poww(ll sx,ll a)   {       ll i,j=1;       for(i=0;i<a;i++)       {           j=j*sx;       }       return j;   }   int main()   {       ios_base::sync_with_stdio(false);    cin.tie(0);    cout.tie(0);    ll t;    cin>>t;    while(t--)       {           ll x,y=0;           cin>>x;           ll curr=0,i=1;           while(curr<x)           {               curr=curr+i;               i++;           }           if(curr==x+1)               cout<<i<<endl;           else               cout<<i-1<<endl;       }   }   