top1编程
← 返回题目
题解

【入门】判断整除

1 条题解

  • 0
    @ 2026-7-29 0:16:39
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
        int i;
        cin>>i;
        if(i%2==0||i%3==0){
            cout<<"Y";
        }else{
            cout<<"N";
        }
    }
    
    • 1