์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ๋ฐฑ์ค 1339๋ฒ js
- ์๋ฐ์คํฌ๋ฆฝํธ ์ค์ฝํ
- ๋ฐฑ์ค 2108 nodejs
- ์ต์ ๋์ฒด์ด๋
- suspense ๋์์๋ฆฌ
- js ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง
- ํ๋ก๊ทธ๋๋จธ์ค ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- ๋ฆฌ์กํธ์ฟผ๋ฆฌ suspense
- next13 emotion
- ํ๋ก๊ทธ๋๋จธ์ค ๋ฌธ์์ด ์์ถ
- ์ค์ฝํ
- js
- TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more:
- ์๋ฐ์คํฌ๋ฆฝํธ ๋ฌธ์์ด ์์ถ
- ์ฌ์ฉ์ฑ ๊ฐ์
- emtion app router
- suspense react-query
- ๋ฐฑ์ค 2108 ์๋ฐ์คํฌ๋ฆฝํธ
- ๋ฐฑ์ค 1339๋ฒ nodejs
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง ํ๊ณ
- js ๋ฌธ์์ด ์์ถ
- js ์ค์ฝํ
- ๋ฐฑ์ค 1339๋ฒ ์๋ฐ์คํฌ๋ฆฝํธ
- ๊ตฌ๋ฆํค
- suspense ๋ณ๋ชฉํ์
- suspense ๋น๋๊ธฐ
- app router emotion
- emotion RSC
- ์นด์นด์ค ์ฝํ
- Today
- Total
๋ชฉ๋ก๐ฅ Algorithm/Baekjoon (56)
Lennon FE
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/b3xKh0/btrvH0Q5DzW/hQAkRiQ0egarkRDxclEBh0/img.png)
https://www.acmicpc.net/problem/1932 1932๋ฒ: ์ ์ ์ผ๊ฐํ ์ฒซ์งธ ์ค์ ์ผ๊ฐํ์ ํฌ๊ธฐ n(1 ≤ n ≤ 500)์ด ์ฃผ์ด์ง๊ณ , ๋์งธ ์ค๋ถํฐ n+1๋ฒ์งธ ์ค๊น์ง ์ ์ ์ผ๊ฐํ์ด ์ฃผ์ด์ง๋ค. www.acmicpc.net const fs = require('fs'); let [n, ...input] = fs.readFileSync('dev/stdin').toString().trim().split('\n'); input = input.map((v) => v.split(' ').map(Number)); const dp = [input[0]]; for (let i = 1; i < input.length; i++) { let arr = []; for (let j = 0; j < input[i]..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bX8vZF/btrvIyzDqLV/6ATEagOgUxX8OrLUPAeFgK/img.png)
https://www.acmicpc.net/problem/9095 9095๋ฒ: 1, 2, 3 ๋ํ๊ธฐ ๊ฐ ํ ์คํธ ์ผ์ด์ค๋ง๋ค, n์ 1, 2, 3์ ํฉ์ผ๋ก ๋ํ๋ด๋ ๋ฐฉ๋ฒ์ ์๋ฅผ ์ถ๋ ฅํ๋ค. www.acmicpc.net const fs = require('fs'); let [n, ...input] = fs.readFileSync('dev/stdin').toString().trim().split('\n'); input = input.map(Number); const occation = [0]; occation[1] = 1; occation[2] = 2; occation[3] = 4; for (let i = 4; i { console.log(occation[v]); }); DP๊ฐ์ ๋ฌธ์ ๋ฅผ ๋ณผ ๋ ์ฌ๊ท๋ก ๋ง ๋๋ฆด ์..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/biuBsy/btrvJTJKSii/P6WUo5WJWT7hG9b0rkMJN0/img.png)
https://www.acmicpc.net/problem/2579 2579๋ฒ: ๊ณ๋จ ์ค๋ฅด๊ธฐ ๊ณ๋จ ์ค๋ฅด๊ธฐ ๊ฒ์์ ๊ณ๋จ ์๋ ์์์ ๋ถํฐ ๊ณ๋จ ๊ผญ๋๊ธฐ์ ์์นํ ๋์ฐฉ์ ๊น์ง ๊ฐ๋ ๊ฒ์์ด๋ค. ๊ณผ ๊ฐ์ด ๊ฐ๊ฐ์ ๊ณ๋จ์๋ ์ผ์ ํ ์ ์๊ฐ ์ฐ์ฌ ์๋๋ฐ ๊ณ๋จ์ ๋ฐ์ผ๋ฉด ๊ทธ ๊ณ๋จ์ ์ฐ์ฌ ์๋ ์ www.acmicpc.net const fs = require('fs'); let [n, ...input] = fs.readFileSync('dev/stdin').toString().trim().split('\n'); input = input.map(Number); const dp = []; dp[0] = input[0]; dp[1] = Math.max(input[0] + input[1], input[1]); dp[2] = Math.ma..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/chhmQy/btrtG9aNmXL/rHPEQ37Nr3HUym9O0iTLf0/img.png)
https://www.acmicpc.net/problem/1744 1744๋ฒ: ์ ๋ฌถ๊ธฐ ๊ธธ์ด๊ฐ N์ธ ์์ด์ด ์ฃผ์ด์ก์ ๋, ๊ทธ ์์ด์ ํฉ์ ๊ตฌํ๋ ค๊ณ ํ๋ค. ํ์ง๋ง, ๊ทธ๋ฅ ๊ทธ ์์ด์ ํฉ์ ๋ชจ๋ ๋ํด์ ๊ตฌํ๋ ๊ฒ์ด ์๋๋ผ, ์์ด์ ๋ ์๋ฅผ ๋ฌถ์ผ๋ ค๊ณ ํ๋ค. ์ด๋ค ์๋ฅผ ๋ฌถ์ผ๋ ค๊ณ ํ ๋, ์์น์ www.acmicpc.net const fs = require('fs'); const [n, ...input] = fs.readFileSync('../input.txt').toString().trim().split('\n').map(Number); const negative = []; const positive = []; let zero = 0; let answer = 0; input.forEach((v) => { if (..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bRfz3c/btrtG8XcOUq/0XDyiMrWOvlBq6Lh7QpuR0/img.png)
https://www.acmicpc.net/problem/14888 14888๋ฒ: ์ฐ์ฐ์ ๋ผ์๋ฃ๊ธฐ ์ฒซ์งธ ์ค์ ์์ ๊ฐ์ N(2 ≤ N ≤ 11)๊ฐ ์ฃผ์ด์ง๋ค. ๋์งธ ์ค์๋ A1, A2, ..., AN์ด ์ฃผ์ด์ง๋ค. (1 ≤ Ai ≤ 100) ์ ์งธ ์ค์๋ ํฉ์ด N-1์ธ 4๊ฐ์ ์ ์๊ฐ ์ฃผ์ด์ง๋๋ฐ, ์ฐจ๋ก๋๋ก ๋ง์ (+)์ ๊ฐ์, ๋บ์ (-)์ ๊ฐ์, www.acmicpc.net const fs = require('fs'); let [n, ...input] = fs.readFileSync('dev/stdin').toString().trim().split('\n'); const [expression, sign] = input.map((v) => v.split(' ').map(Number)); const type = ['..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bFjkGx/btrtvqRia3x/4V3N4EOIKk9QQOJHhLuM7k/img.png)
https://www.acmicpc.net/problem/17140 17140๋ฒ: ์ด์ฐจ์ ๋ฐฐ์ด๊ณผ ์ฐ์ฐ ์ฒซ์งธ ์ค์ r, c, k๊ฐ ์ฃผ์ด์ง๋ค. (1 ≤ r, c, k ≤ 100) ๋์งธ ์ค๋ถํฐ 3๊ฐ์ ์ค์ ๋ฐฐ์ด A์ ๋ค์ด์๋ ์๊ฐ ์ฃผ์ด์ง๋ค. ๋ฐฐ์ด A์ ๋ค์ด์๋ ์๋ 100๋ณด๋ค ์๊ฑฐ๋ ๊ฐ์ ์์ฐ์์ด๋ค. www.acmicpc.net const fs = require('fs'); let [input, ...matrix] = fs.readFileSync('dev/stdin').toString().trim().split('\n'); input = input.split(' '); const [num, location] = [+input.pop(), input.map(Number)]; matrix = matrix.map(..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cIosMB/btrtk14PMEX/Kr4OKIIV0DsklgxraUHSP1/img.png)
https://www.acmicpc.net/problem/1541 1541๋ฒ: ์์ด๋ฒ๋ฆฐ ๊ดํธ ์ฒซ์งธ ์ค์ ์์ด ์ฃผ์ด์ง๋ค. ์์ ‘0’~‘9’, ‘+’, ๊ทธ๋ฆฌ๊ณ ‘-’๋ง์ผ๋ก ์ด๋ฃจ์ด์ ธ ์๊ณ , ๊ฐ์ฅ ์ฒ์๊ณผ ๋ง์ง๋ง ๋ฌธ์๋ ์ซ์์ด๋ค. ๊ทธ๋ฆฌ๊ณ ์ฐ์ํด์ ๋ ๊ฐ ์ด์์ ์ฐ์ฐ์๊ฐ ๋ํ๋์ง ์๊ณ , 5์๋ฆฌ๋ณด๋ค www.acmicpc.net const input = require('fs').readFileSync('dev/stdin').toString().trim().split('-'); function sumValue(arr) { if (!arr.length) return 0; return +arr.split('+').reduce((pre, cur) => +pre + +cur); } console.log(input.reduce..