top1编程
← 返回题目
题解

【入门】判断整除1

1 条题解

  • 0
    @ 2026-7-29 0:16:28
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int n;
        cin>>n;
        if(n%3==0&&n%5!=0){
            cout<<"Yes";
        }else{
            cout<<"No";
        }
        return 0;
    }
    
    • 1