#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
ll n, m, cnt;
while(cin >> n >> m)
{
cnt = n;
while(cnt < m)
{
n++;
cnt += n;
}
cout << n << "\n";
}
return 0;
}
Comments
Post a Comment