2 条题解

  • 1
    @ 2026-4-17 21:40:44
    #include<bits/stdc++.h>
    using namespace std;
    int main ()
    {
        int x,y;
        cin>>x>>y;
        for(int n=1000;n>=1;--n){
            if(n% x !=0 && n % y!=0){
                cout<<n<<endl;
                return 0;
        }
        }
    }
    

    信息

    ID
    105
    时间
    1000ms
    内存
    64MiB
    难度
    7
    标签
    递交数
    75
    已通过
    17
    上传者