Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <stack>
- #include <queue>
- #include <algorithm>
- using namespace std;
- int main()
- {
- ios_base::sync_with_stdio(false);
- int k, a, b;
- cin >> k >> a >> b;
- if(b == a) {
- cout << "NE" << endl;
- return 0;
- }
- if(k % (b - a) == 0) {
- cout << k / (b - a) << endl;
- }
- else {
- cout << "NE" << endl;
- }
- return 0;
- }
- // ({})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement