11 条题解

  • -2
    @ 2025-3-11 14:32:36

    #include <bits/stdc++.h>

    using namespace std;

    int main() {

    int x, y, z;
    cin >> x >> y >> z;
    long i = 1, sum = 0;
    
    while (1) {
        if (i % x == 1 && i % y == 1 && i % z == 1) {
            cout << i << " ";
            sum += 1;
        }
        if (sum == 10) {
            return 0;
        }
        i += 1;
    }
    
    return 0;
    

    }

    //高一作业??

信息

ID
72
时间
10000ms
内存
128MiB
难度
5
标签
递交数
1519
已通过
532
上传者