3 条题解

  • -2
    @ 2026-5-30 19:44:35

    #include <bits/stdc++.h> using namespace std;

    int main() { int a; std::cin >> a;

    for (int i = 1; i <= a; ++i) {
    	if (i % 3 == 2 && i % 5 == 3 && i % 7 == 2) {
    		std::cout << i << std::endl;
    	}
    
    }
    return 0;
    

    }

    //不用谢

    信息

    ID
    30947
    时间
    1000ms
    内存
    256MiB
    难度
    4
    标签
    (无)
    递交数
    22
    已通过
    16
    上传者