PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#SP0000178. Số lẻ có đúng tám ước (105)
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
Số lẻ có đúng tám ước (105)
105
Source: AtCoder ABC106 B — https://atcoder.jp/contests/abc106/tasks/abc106_b
Edition: Phuoc Hung OJ Extended; one dataset per program run. Subtasks are authored for PHOJ, not claimed to be official.
Problem
Count the odd positive integers in with exactly eight distinct positive divisors. For instance, has eight divisors.
Input
One integer .
Output
Print the number of qualifying odd integers.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Example
Input
105
Output
1
Explanation
is the first odd integer with exactly eight divisors, hence the answer at is .