๋ฐ์ํ
https://school.programmers.co.kr/learn/courses/30/lessons/17687
const inf = 100001;
function solution(n, t, m, p) {
let arr = "";
for(let i=0; i<inf; i++) {
arr += i.toString(n);
}
arr = arr.toUpperCase();
arr = arr.split("");
let ans = "";
for(let i=0; i<t; i++) {
ans += arr[i*m+p-1];
}
return ans;
}
๋ฐ์ํ
'๐ ๋ญ? JS๋ก PS๋ฅผ ํ๋ค๊ณ ?' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ํ๋ฐฐ ๋ฐฐ๋ฌ๊ณผ ์๊ฑฐํ๊ธฐ (0) | 2023.06.06 |
---|---|
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] ์ฃผ์ฐจ ์๊ธ ๊ณ์ฐ (0) | 2023.06.05 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] N๊ฐ์ ์ต์๊ณต๋ฐฐ์ (0) | 2023.05.26 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] [3์ฐจ] ์์ถ (0) | 2023.05.25 |
[ํ๋ก๊ทธ๋๋จธ์ค][JS / Javascript] k์ง์์์ ์์ ๊ฐ์ ๊ตฌํ๊ธฐ (0) | 2023.05.24 |