#include<stdio.h>
int main()
{
int a,b,c,d,n;
scanf("%d%d%d%d",&a,&b,&c,&d);
int i,j,count=0;
if(a>b)n=a;else n=b;
if(c>n)n=c;
for(i=1;i<=n*d;i++){
for(j=1;j<=d;j++)
{if((i==j*a)||(i==j*b)||(i==j*c))
{
count++;break;
}
}
}
printf("%d",count);
return 0;
}
标签:count,return,10.30,int,d%,include From: https://blog.51cto.com/u_15758636/5818389