728x90
반응형
SMALL
#include <string>
#include <vector>
using namespace std;
vector<int> solution(vector<int> numbers) {
vector<int> answers;
for(auto iter=numbers.begin(); iter<numbers.end();iter++)
answers.push_back((*iter)*2);
return answers;
}
728x90
반응형
LIST
'C++' 카테고리의 다른 글
| [프로그래머스] 최빈값 구하기 (수정중) (0) | 2025.09.01 |
|---|---|
| [프로그래머스] 나머지 구하기, 중앙값 구하기 (0) | 2025.09.01 |
| [프로그래머스] 분수의 덧셈 (0) | 2025.09.01 |
| [프로그래머스] 숫자 비교하기 (0) | 2025.08.29 |
| [프로그래머스] 몫 구하기, 두 수의 나눗셈 (0) | 2025.08.29 |
댓글