1 solutions

  • 0
    @ 2025-7-9 11:50:33
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int x,y;
    	cin>>x>>y;
    	for(int i=1000;i>=1;i--){
    		if(i%x!=0&&i%y!=0){
    			cout<<i;
    			return 0;
    		}
    	}
    	return 0;
    }
    
    
    
    • 1

    Information

    ID
    2840
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    6
    Tags
    # Submissions
    15
    Accepted
    11
    Uploaded By