![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/bIIJga/btrcGT2v3kL/bIfPMi8axNdyGjrHihfoR1/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString().split("\n"); // split을 없앴습니다. // console.log(input); // let testcase = +..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/bJ8fcz/btrczdACw3V/eaU4knFBYhkkDfctYW9Lfk/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString().split("\n"); // console.log(input); input = input[0]; input = input.spli..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/eWGMFR/btrcs8Tvns5/Yt2VCjJzrPzkFboq5I5BK0/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString(); // split을 없앴습니다. input = +input; // + 는 Number(input)의 역할을 합니다 solution..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/0LORA/btrcgPue8ws/v2xe0Qjo4zF0RHVEedKrmk/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. // let input = fs.readFileSync(filePath).toString().split("\n"); // split 부분을 없애야 백준사이트에서 정답으로 인식합니다.! let input = fs.rea..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/do3oQi/btrcp1URm2o/tIq4Ijklemx6jDq6bYGk2K/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString().split("\n"); input = input[0]; input = input.split(" ").map((item) => +i..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/mwxgY/btrci81x0Mo/4fjpmnTzdNfrWnU777xcG1/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString().split("\n"); // input = input.split(" ").map((item) => +item); //split을 ..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/JKsCj/btrcvyqmny2/rzumgCloOnqrxbghHZJyC0/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString().split("\n"); input = input[0]; input = input.split(" ").map((item) => +i..
![](http://i1.daumcdn.net/thumb/C148x148/?fname=https://blog.kakaocdn.net/dn/dYuA1i/btrcojVQQkt/KHi7tJgraw9YsWSXjl2IS0/img.png)
const fs = require("fs"); const filePath = process.platform === "linux" ? "./input.txt" : "/dev/stdin"; //제 개발환경은 리눅스이기에 input.txt를 앞에 두었습니다. // const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; // 실제 백준사이트에 제출할 때는 위에 filePath를 삭제하고 이 부분을 입력하면 됩니다. let input = fs.readFileSync(filePath).toString().split("\n"); input = input[0]; input = input.split(" ").map((item) => +i..
- Total
- Today
- Yesterday
- 원티드
- C언어
- Storybook
- nodejs
- 초보
- env
- 노마드코더
- 스토리 북
- NextRequest
- jest
- error
- javascript
- createPortal
- electron
- 위코드
- nextjs
- 윤성우 열혈C프로그래밍
- TopLayer
- 우아한테크코스
- 북클럽
- 프론트앤드
- 노개북
- WSL2
- 프리온보딩
- React
- NextApiRequest
- 아차산
- import/order
- CLASS
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
29 | 30 | 31 |