Skip to content

Instantly share code, notes, and snippets.

@komly
Created January 11, 2016 16:08
Show Gist options
  • Save komly/bd89b76c2b3bf54ca20a to your computer and use it in GitHub Desktop.
Save komly/bd89b76c2b3bf54ca20a to your computer and use it in GitHub Desktop.
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int count[3];
int tables = 0;
cin >> count[0] >> count[1] >> count[2];
for (int i = 0; i < 3; i++)
{
tables += ceil(count[i] / 2.0);
}
cout << tables << endl;;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment