Problem
Problem URL : x만큼 간격이 있는 n개의 숫자
[1] Answer Code (18. 07. 24)
vector<long long> solution(int x, int n) {
vector<long long> answer;
for(int i=0; i<n; i++){
answer.push_back(x + i*x);
}
return answer;
}
[1] Answer Code (18. 07. 24)
- 무난 ~