uploaded at 2022. 12. 17. 오후 10:11:32
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user