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

20359번 - A simple task 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
0.5 초 (추가 시간 없음) 512 MB63143340169.377%

문제

Given a positive integer n, find the odd integer o and the integer p such that n = o2p.

Write a program that:

  • reads a positive integer n from the standard input,
  • computes the odd integer o and the integer p such that n = o2p,
  • writes the result to the standard output.

입력

The first and only line of the input contains exactly one integer n, 1 ≤ n ≤ 106.

출력

The output should contain two integers o and p separated by a single space such that n = o2p.

제한

예제 입력 1

24

예제 출력 1

3 3

힌트

출처

ICPC > Regionals > Europe > Central European Regional Contest > CERC 2002 연습 세션 PA번

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

출처

대학교 대회

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

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