fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. int main() {
  4. int a, b, c;
  5. cin >> a >> b >> c;
  6. cout << (a + b + c)/2 + (a + b + c)%2 << endl;
  7. return 0;
  8. }
Success #stdin #stdout 0s 15232KB
stdin
16 18 20
stdout
27