uploaded at 2022. 12. 17. 오후 10:11:32

This commit is contained in:
rl544
2022-12-17 22:11:31 +09:00
parent 5830ed698b
commit dd84813459
@@ -0,0 +1,11 @@
// [문제 링크]: https://school.programmers.co.kr/learn/courses/30/lessons/12954?language=java
class Solution {
public long[] solution(int x, int n) {
long[] answer = new long[n];
for(int a = 0; a < n; a++){
answer[a] = (long) x*(a+1);
}
return answer;
}
}