#include<set>
#include<iostream>
using namespace std;
int main()
{
set<int> v;
int n;
cin>>n;
int sum=0;
for(int i=1;i<=n;i++){
sum=i/2+i/3+i/5;
v.insert(sum);
}
cout<<v.size();
return 0;
}
标签:1087,std,main,PAT,int,sum,乙级,include
来源: https://blog.csdn.net/weixin_51928751/article/details/120962895