|
||||||||||
Tom and paperTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1779 Accepted Submission(s): 1066 Problem Description There is a piece of paper in front of Tom, its length and width are integer. Tom knows the area of this paper, he wants to know the minimum perimeter of this paper. Input In the first line, there is an integer T indicates the number of test cases. In the next T lines, there is only one integer n in every line, indicates the area of paper. $T\leq 10,n\leq {10}^{9}$ Output For each case, output a integer, indicates the answer. Sample Input
Sample Output
Source | ||||||||||
|