1 solutions

  • 0
    @ 2025-12-3 16:23:58

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int a,b,c;
    int main()
    {
    //	freopen("687.in","r",stdin);
    //	freopen("687.out","w",stdout);	
    	cin>>a>>b>>c;
    	for(int i=1;;i++)
    		if(i%2==a && i%3==b && i%5==c) {cout<<i;break;}
        return 0;
    }
    
    
    • 1

    Information

    ID
    875
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    1
    Accepted
    1
    Uploaded By