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

18975번 - Jaw-Dropping Set 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB133534242.000%

문제

A subset $A$ of the set $\{1, 2, 3, \ldots, n\}$ is called interesting if for any pair of different integers $x, y \in A$ neither $x$ divides $y$ nor $y$ divides $x$.

An interesting subset $A$ is called amazing if it has the maximum cardinality among all interesting subsets.

Finally, an amazing subset $A$ is called jaw-dropping if it has the minimum sum of elements among all amazing subsets.

Given $n,ドル find the sum of elements in any jaw-dropping subset of $\{1, 2, 3, \ldots, n\}$.

입력

The first line contains integer $t$ (1ドル \le t \le 10^5$) --- the number of test cases.

Each of the next $T$ lines contains an integer $n_i$ (1ドル \le n_i \le 10^9$).

출력

Print $T$ lines with answers for each test case.

제한

예제 입력 1

7
1
2
3
4
5
6
7

예제 출력 1

1
1
5
5
10
10
17

힌트

출처

Camp > Petrozavodsk Programming Camp > Summer 2018 > Day 3: MIPT Contest J번

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

출처

대학교 대회

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

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