今天是練習cpe的The Hotel with Infinite Rooms題目
#include <bits/stdc++.h>
using namespace std;
int main() 
{
	long long S ,D ,count;
	while(cin >> S >> D)
	{
		count = S;
		D-=count;
		while(D > 0)
		{
			count++ ;
			D-=count;
		}
		cout << count << endl;
	}
}