ABC082A - 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; }
#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; }