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

16834번 - Sum of QQ 다국어

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

문제

You received a card with an integer $S$ and a multiplication table of infinite size. All the elements in the table are integers, and an integer at the $i$-th row from the top and the $j$-th column from the left is $A_{i, j} = i \times j$ ($i, j \ge 1$). The table has infinite size, i.e., the number of the rows and the number of the columns are infinite.

You love rectangular regions of the table in which the sum of numbers is $S$. Your task is to count the number of integer tuples $(a, b, c, d)$ that satisfies 1ドル \leq a \leq b, 1 \leq c \leq d$ and $\sum_{i=a}^{b} \sum_{j=c}^{d} A_{i,j} = S$.

입력

The input consists of a single test case of the following form.

$S$

The first line consists of one integer $S$ (1ドル \leq S \leq 10^5$), representing the summation of rectangular regions you have to find.

출력

Print the number of rectangular regions whose summation is $S$ in one line.

제한

예제 입력 1

25

예제 출력 1

10

예제 입력 2

1

예제 출력 2

1

예제 입력 3

5

예제 출력 3

4

예제 입력 4

83160

예제 출력 4

5120

힌트

출처

Contest > ICPC Japanese Alumni Group > JAG Summer Camp > JAG Summer Camp 2018 Day 3 I번

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

출처

대학교 대회

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

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