よじろめ覚書

私の理解度重視のソースコードです。

ABC082A - Round Up the Mean

問題:A - Round Up the Mean

#include <cmath>
#include <iostream>
using namespace std;

int main(void) {
    int a, b;

    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> a >> b;
    cout << (int)ceil((a + b) / 2.0) << "\n";
    return 0;
}