Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- using namespace std;
- int main() {
- int a, b, c;
- cin >> a >> b >> c;
- int vtor_lift = abs(b - c) + c;
- if(a == vtor_lift) {
- cout << 0 << endl;
- }
- else if(a < vtor_lift) {
- cout << 1 << endl;
- }
- else {
- cout << 2 << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement