#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
int n=0;
int a,b,c;
cin>>n;
cin>>a>>b>>c;
int s=0;
for(int i=1;i<=n;i++)
{
if((i%a!=0)&&(i%b!=0)&&(i%c!=0))
s++;
}
cout<<s<<endl;
return 0;
}
没看出有问题。如果有问题,那么可能是对1到n这个区间是否包含1和n的理解的歧义