QOJ.ac

QOJ

Time Limit: 1.0 s Memory Limit: 64 MB Total points: 100

#18083. 쉬운 방정식

Statistics

다음 방정식의 해의 개수를 구하시오.

$$x^5 + y^4 + z^3 + w^2 + t = n$$

여기서 $x, y, z, w, t$는 양의 정수이며, $n$은 주어진 양의 정수이다.

입력

정수 $n$ ($1 \le n \le 10^9$)이 한 줄에 주어진다.

출력

해의 개수인 정수 하나를 출력한다.

예제

입력 1

12

출력 1

3

입력 2

2019

출력 2

7386

입력 3

1000000

출력 3

26734730

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.