a big company decided to launch a new series of rectangular displays and decided that the display must have exactly n pixels.your task is to determine the size of the rectangular display the number of lines (rows) of pixels a and the number of columns of pixels b so that: there are exactly n pixels on the display; the number of rows does not exceed the number of columns it means ab; the difference b-a is as small as possible.inputthe first line contains th
Answers
Answered by
0
It has number of exactly n pixel on the display and also it number of rows exceed the number of columns, hence it mean a ≤ b and the difference is b-a which is small as possible.
If you get positive integer n (1 ≤ n ≤ 106) - total number of the pixel display. Hence the output becomes two integers and row and columns on display.
Similar questions