通过代码:
#include <bits/stdc++.h> using namespace std; long long n; int main() { scanf("%lld", &n); if(n % 3 == 0 && n % 5 == 0) printf("YES"); else printf("NO"); return 0; }
1046:判断一个数能否同时被3和5整除
最新推荐文章于 2023-11-11 13:37:00 发布
通过代码:
#include <bits/stdc++.h> using namespace std; long long n; int main() { scanf("%lld", &n); if(n % 3 == 0 && n % 5 == 0) printf("YES"); else printf("NO"); return 0; }