A297. 找出整数 题解
2025-09-22 20:49:01
发布于:广东
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
void f(int x) {
if (x % 3 == 2 && x % 5 == 3 && x % 7 == 2)
cout << x << endl;
}
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++)
f(i);
return 0;
}
这里空空如也
有帮助,赞一个