1 solutions

  • 0
    @ 2025-11-21 18:41:36

    #include <bits/stdc++.h> using namespace std; int main() { int x, y; cin >> x >> y; for (int i = 1000; i >= 0; i--) { if (i % x != 0 && i % y != 0) { cout << i; return 0; } else { continue; } } return 0; }

    Information

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