https://www.acmicpc.net/problem/11399 #include #define endl "\n"using namespace std;int main(void) { /************** C++ Init **************/ ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); /************** C++ Init **************/ int input1, input2; int sum = 0; vector v; cin >> input1; for (int i = 0; i > input2; v.push_back(input2); } sort(v.begin(), v.end()); sum = v[0]; for (in..