我的代码:判断整除
#include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; if(n%m) cout<<"YES"; else cout<<"NO"; return 0; }
收起
n%m改成n%m==0即可
报告相同问题?