题解
2025-10-13 20:46:50
发布于:广东
8阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
if(n % 3 != 0 && n % 5 != 0 && n % 7 != 0)
{
cout<<"n"<<endl;
}
else
{
if(n % 3 == 0)
{
cout<<3<<" ";
}
if(n % 5 == 0)
{
cout<<5<<" ";
}
if(n % 7 == 0)
{
cout<<7<<" ";
}
}
return 0;
}
这里空空如也



有帮助,赞一个