Logo
(追記) (追記ここまで)

3276번 - ICONS 스페셜 저지다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB116187782176.514%

문제

Dave has a collection of N interesting pebbles. He wishes to arrange them in rows and columns in such a way that the sum of number of rows and number of columns needed is minimal possible. Write a program that will help Dave to find such numbers.

입력

The first and only line of input file contains a natural number N (1 ≤ N ≤ 100), the number of pebbles to be arranged. Arrangement needs not to be regular in any sense – some places in a row may be empty.

출력

The first and only line of output file must contain number of rows and number of columns separated by one space.

Note: A solution needs not to be unique.

제한

예제 입력 1

2

예제 출력 1

1 2

예제 입력 2

5

예제 출력 2

3 2

예제 입력 3

14

예제 출력 3

4 4

힌트

출처

Olympiad > Croatian Highschool Competitions in Informatics > 2001 > Regional Competition - Juniors 1번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /