프로그래머스 - x만큼 간격이 있는 n개의 숫자

108번뇌·2020년 10월 14일
0

#include <string>
#include <vector>

using namespace std;

vector<long long> solution(int x, int n) {
    vector<long long> answer;
    
    for(int i=1; i<=n ;i++)
    {
        int Temp = x*i;
        answer.push_back(Temp);
    }
    
    return answer;
}

내용무.

profile
내일 아침 눈을 떳을 때, '기대되는 오늘 하루를 만들기 위해' 나는 오늘도 생각하고 고민한다.

0개의 댓글