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