4 solutions

  • 0
    @ 2026-9-11 20:00:17

    #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;
    

    }

    Information

    ID
    2840
    Time
    1000ms
    Memory
    64MiB
    Difficulty
    3
    Tags
    # Submissions
    95
    Accepted
    51
    Uploaded By