练46.4 第N个智慧数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
Description
A positive integer is called a "smart number" if it can be expressed as the difference of squares of two positive integers. For example, equals , so is a smart number. In the sequence of natural numbers starting from , we number the "smart numbers" in ascending order as , , , ..., . Given a positive integer , output the -th "smart number".
Input Format
The input contains a single positive integer ().
Output Format
Output a single positive integer representing the -th "smart number".
Sample
37
20251025B班作业(4)
- Status
- Done
- Problem
- 4
- Open Since
- 2025-10-25 0:00
- Deadline
- 2025-11-2 23:59
- Extension
- 24 hour(s)