[알고리즘] 백준 10409 - 서버 (C++) [문제 링크] : https://www.acmicpc.net/problem/10409#include using namespace std;int N, M, Ans;int Arr[51];int main(){ cin >> N >> M; int sum = 0; for(int i=0; i> Arr[i]; sum += Arr[i]; if(sum 알고리즘 2024.11.18