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

8027번 - Antiprime Numbers 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
3 초 512 MB75533871.698%

문제

We call a positive integer an antiprime if it has more divisors than any positive integer less than that number. Example antiprime numbers are: 1, 2, 4, 6, 12, 24.

Write a program which:

  • reads from the standard input a positive integer n,
  • computes the largest antiprime number not greater than n,
  • writes the result to the standard output.

입력

The first and only line of standard input contains a single integer n, 1 ≤ n ≤ 2,000,000,000.

출력

In the only line of standard output your program should write one integer - the largest antiprime number not greater than n.

제한

예제 입력 1

1000

예제 출력 1

840

힌트

출처

Olympiad > Polish Olympiad in Informatics > POI 2000/2001 > Stage 1 1번

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

출처

대학교 대회

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

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