1 solutions

  • 0
    @ 2023-3-5 14:02:34
    #include<iostream>
    using namespace std;
    int main(){
    	int n,a,b,c;
    	cin>>n>>a>>b>>c;
    	cout<<n/a+n/b+n/c-2*(n/a/b+n/a/c+n/b/c)+4*(n/a/b/c)<<endl;
    	return 0;
    }
    

    Information

    ID
    6703
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    4
    Tags
    (None)
    # Submissions
    48
    Accepted
    23
    Uploaded By