#include <iostream>
signed main() {
setlocale(LC_ALL, "Rus");
int A, B, C;
std::cin >> A >> C >> B;
if ((B - (A + C)) % C == 0)
std::cout << "Да";
else
std::cout << "Нет";
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
signed main() {
setlocale(LC_ALL, "Rus");
int A, B, C;
std::cin >> A >> C >> B;
if ((B - (A + C)) % C == 0)
std::cout << "Да";
else
std::cout << "Нет";
return 0;
}