PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#SP0000184. Số giống 250 (250-like Number)
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ố giống 250 (250-like Number)
250-like Number
Source: AtCoder ABC250 D — https://atcoder.jp/contests/abc250/tasks/abc250_d
Edition: Phuoc Hung OJ Extended; one dataset per program run. Subtasks are authored for PHOJ, not claimed to be official.
Problem
Count the positive integers expressible as with primes . Distinct pairs yield distinct integers by unique prime factorization.
Input
One integer .
Output
Output the count.
Subtasks
- Subtask 1 (20 points): .
- Subtask 2 (30 points): .
- Subtask 3 (50 points): .
Example
Input
250
Output
2
Explanation
The qualifying numbers not exceeding are and .