Piloto Automático
Problem LinkSolution by dudu — 100 pts
Code / Notes
#include <bits/stdc++.h>
using namespace std;
int main() {
int A, B, C;
cin >> A >> B >> C;
if ((B-A) < (C-B)) {
cout << 1 << endl;
}
if ((B-A) == (C-B)) {
cout << 0 << endl;
}
if ((B-A) > (C-B)) {
cout << -1 << endl;
}
}
Last updated 2 weeks, 3 days ago