3 条题解

  • 3
    @ 2026-5-30 22:17:39
    #include <bits/stdc++.h>
    using namespace std;
    int main() {
      int n;
        cin >> n;
        for (int i = 1; i <= n; i++) {
            if (i % 3 == 2 && i % 5 == 3 && i % 7 == 2) {
                cout << i << endl;
            }
        }
        return 0;
    }
    
    
    
    • 1
      @ 2026-5-31 13:57:12

      #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 2 && i % 5 == 3 && i % 7 == 2) { cout << i << endl; } } return 0; }

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

        }

        //不用谢

        • 1

        信息

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