eolymp
bolt
Try our new interface for solving problems
Problems

Easy problem for Dino

published at 1/14/24, 3:10:57 pm

include <bits/stdc++.h>

using namespace std; int main() { int a , b , c , d , k , e; cin>>a>>b; k = (a + b) / 2; c = abs(a - k); d = abs(b - k); if(c == d) { cout<<k; }

else
{
    cout<<"-";
}

}

published at 1/14/24, 3:10:57 pm

include <bits/stdc++.h>

using namespace std; int main() { int a , b , c , d , k , e; cin>>a>>b; k = (a + b) / 2; c = abs(a - k); d = abs(b - k); if(c == d) { cout<<k; }

else
{
    cout<<"-";
}

}