3023 判断能否整除

#include<bits/stdc++.h>
#define f(i,s,e) for(int i = s; i <= e; i++)
#define ll long long
using namespace std;
const int N = 1e3+10,inf = 0x3f3f3f3f;

int main()
{
    int a,b;
    cin >> a >> b;
    //整除就是余数为0 
    if(a % b == 0) cout << "YES";
    else cout << "NO";    
    return 0;
}

 

posted @ 2024-07-03 16:36  CRt0729  阅读(45)  评论(0)    收藏  举报