Đăng nhập để hỏi chi tiết


Hãy luôn nhớ cảm ơn và vote 5*
nếu câu trả lời hữu ích nhé!
#include <iostream>
#include <cmath>
using namespace std;
int main() {
freopen("CHIA.INP","r",stdin);
freopen("CHIA.OUT","w",stdout);
long long a,b;
cin >> a >> b;
if (b == 0) cout << "INVALID";
else
if (a % b == 0) cout << "YES";
else cout << "NO";
return 0;
}
Hãy giúp mọi người biết câu trả lời này thế nào?
Bảng tin