사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
12954번 x만큼 간격이 있는 n개의 숫자
GamJia 2023. 3. 16. 09:10
코딩테스트 연습 - Level 1 - x만큼 간격이 있는 n개의 숫자
https://programmers.co.kr/learn/courses/30/lessons/12954
#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++) { answer.push_back(i*x); } return answer; }