From 6df9f03e1b87b0907b4b04df8319258fe7d90da5 Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Fri, 12 Jan 2024 09:59:03 +0900 Subject: [PATCH] Add 18408.cpp --- 18xxx/18408.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 18xxx/18408.cpp diff --git a/18xxx/18408.cpp b/18xxx/18408.cpp new file mode 100644 index 00000000..8b77bac2 --- /dev/null +++ b/18xxx/18408.cpp @@ -0,0 +1,16 @@ +#include +using namespace std; + +void solve(void) { + int a, b, c; cin >> a >> b >> c; + + cout << (a+b+c+1)/3; +} + +int main(void) { + ios::sync_with_stdio(false); + cin.tie(nullptr); cout.tie(nullptr); + + solve(); + return 0; +} \ No newline at end of file