Saaho Vs Dream Girl
Practice
0 (0 votes)
Binary search
Math basic
Math
Problem
7% Success 216 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code

Saaho and Dream Girl clashes at the box office.Saaho is a big budget movie as compared to Dream girl So Saaho started well at the Box office. Total collections of Saaho at the end of \(N\)th day at the box office is given by \(A^N\).As the review of Dream Girl is positive, Its collection pick up day by day and the total collections of Dream Girl at the end of \(N\)th day at the box office is given by \(N!\). Find minimum number of days at the box office in which Dream girl collection crosses the Saaho collection.

Input
The first line of the input contains number \(T (1<=T<=10^5)\), the number of testcases.
Each test case consists of a single number \(A (2<=A<=10^6)\).

Output
For each test cases print the minimum number of days in new line.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:20
11 votes
Tags:
Ad-HocMathematicsOpenApprovedEasyMathamatics
Points:20
7 votes
Tags:
MathematicsOpenApprovedEasyMathamatics
Points:20
926 votes
Tags:
Ad-HocMathematicsEasy