Please enter your email address or userHandle.
You have been given N dots and a triangle is formed using these dots in the following way-
. . .
. . . .
i.e,first line of triangle contains 1 dot,second line contains 2 dots,third line 3 dots and so on.
You have to find the minimum hieght H of the triangle that can be formed using these N dots.
The first line of input contains an integer denoting the number of test cases.Next line of input contains a positive number N denoting the number of dots.
For each test case , the output is in a new line containg an integer H denoting the max height of the triangle which can be formed.
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.