eolymp
bolt
Try our new interface for solving problems
Məsələlər

Dino üçün asan sual

dərc olunub 14.01.24 15:10:57

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<<"-";
}

}

dərc olunub 14.01.24 15:10:57

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<<"-";
}

}