STL——Number
STL——Number 题目描述 We define Shuaishuai-Number as a number which is the sum of a prime square(平方), prime cube(立方), and prime fourth power(四次方). The first four Shuaishuai numbers are: How many Shuaishuai numbers in [1,n]? (1<=n<=50 000 000) 输入描述: The input will consist of a integer n. 输出描述: You should output how many Shuaishuai numbers in [1…n] 示例 输入 28 输出 1 说明 There is only one Shuaishuai number. 方法一: 仅使用vector # include <cstdio> # include <cstring> # include <cstdlib> # include <iostream> # include <algorithm> # include <vector> # include <set> # include <cmath> using namespace std ; vector <