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

16702번 - The Silence of the Lamps 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 512 MB1961058953.614%

문제

First, for those who have never seen a lamp before, let’s say it is a cuboid (box with rectangular faces) made of glass and filled with gas. All sides of a lamp have integer lengths.

Once upon a time, our lecturer was sentenced for destroying lamps on a street. He must have gone somewhat crazy, as he thought some of the lamps were screaming at him in high-pitched voices.

In his beautiful mind, he followed a weird pattern. He only recognized and destroyed those lamps which had no square face and whose volume did not exceed a fixed value. Later, during a session with his doctor Clarice, he said he was very scared of large objects and of objects with too regular shapes.

Your task is to count all possible shapes matching lecturer’s conditions.

입력

The first input line contains a number T of test cases (1 ≤ T ≤ 105). Each of the next T lines contains a single integer N (1 ≤ N ≤ 106), the maximum recognizable volume of a lamp.

출력

For each test case output the number of different lamp shapes which could have been destroyed in the rage.

제한

예제 입력 1

5
5
6
10
30
666

예제 출력 1

0
1
3
26
2406

힌트

출처

ICPC > Regionals > Europe > Central European Regional Contest > CERC 2018 L번

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

출처

대학교 대회

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

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