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

13226번 - Divisors Again 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB41729623071.651%

문제

Count the divisors of every value in the range [L, U] (both L and U included) and return the biggest divisor count you can find.

입력

The first line will contain an integer C with the number of ranges to process. The next C lines will contain a pair of integers L, U.

You have to count the divisors for each number in the range and output the biggest count.

Constraints

  • 1 <= C <= 10
  • L <= U
  • 1 <= L, U <= 10000000
  • 0 <= U - L <= 1000

출력

For each range a line containing the biggest divisor count found.

제한

예제 입력 1

5
1 10
1000 1000
9999900 10000000
35 999
25 25

예제 출력 1

4
16
256
32
3

힌트

출처

Olympiad > All-Ireland Programming Olympiad > 2015 AIPO Preliminary Round 6번

  • 데이터를 추가한 사람: jh05013
(追記) (追記ここまで)

출처

대학교 대회

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

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