@@ -0,0 +1,663 @@
+public class Solution %7B%0A    public int%5B%5D constructRectangle(int area)%7B%0A        int sqrt = (int) Math.sqrt(area);%0A        int%5B%5D result = new int%5B2%5D;%0A        for (int i = sqrt; i %3E 0 ; i--) %7B%0A            if(area%25i == 0)%7B%0A                result%5B0%5D = area/i;%0A                result%5B1%5D = i;%0A                break;%0A            %7D%0A        %7D%0A%0A        return result;%0A    %7D%0A%0A    public static void main(String%5B%5D args)%7B%0A        int area = 6;%0A        Solution solution = new Solution();%0A        int%5B%5D re = solution.constructRectangle(area);%0A        for (int i = 0; i %3C re.length; i++) %7B%0A            System.out.print(re%5Bi%5D+%22 %22);%0A        %7D%0A        System.out.println();%0A    %7D%0A%7D%0A

complete problem 492