From 9dadcc40496dab63305c73673fd82730520f211f Mon Sep 17 00:00:00 2001 From: Jihoon Lee Date: Mon, 19 Feb 2024 04:09:26 +0900 Subject: [PATCH] Add 05919.cpp --- 05xxx/05919.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 05xxx/05919.cpp diff --git a/05xxx/05919.cpp b/05xxx/05919.cpp new file mode 100644 index 00000000..d9567b42 --- /dev/null +++ b/05xxx/05919.cpp @@ -0,0 +1,24 @@ +#include +#include +#include +#include +using namespace std; + +void solve(void) { + int n; cin >> n; + vector v(n); + for (int i=0; i> v[i]; + + int ans = 0; + int avg = accumulate(v.begin(), v.end(), 0) / n; + for (int i=0; i