728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
double solution(vector<int> numbers) {
double answer = 0;
for(auto n : numbers)
answer += n;
return answer/numbers.size();
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
| [프로그래머스] 짝수의 합 (0) | 2025.09.02 |
|---|---|
| [프로그래머스] 양꼬치 (0) | 2025.09.02 |
| [프로그래머스] 피자 나눠 먹기(3) (0) | 2025.09.02 |
| [프로그래머스] 피자 나눠 먹기(2) (0) | 2025.09.02 |
| [프로그래머스] 피자 나눠 먹기(1) (0) | 2025.09.02 |
댓글