直接运用“两边之和一定大于第三边“即可
2025-02-05 19:41:38
发布于:香港
0阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin >> n;
for(int i = 1; i <= n; i++)
{
if(i % 3 == 2 and i % 5 == 3 and i % 7 == 2)
{
cout << i << endl;
}
}
}
这里空空如也
有帮助,赞一个