일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 백준 자바스크립트
- 단계별로 풀어보기
- git 버전관리
- 크롬웹
- border radius
- box-sizing: border-box
- margin 0 auto
- 나도코딩 파이썬
- max-width
- 백준
- 라매개발자
- nav태그
- git
- 드림코딩
- HTML
- 생활코딩 WEB2-JavaScript
- :root
- 백준 정리
- 노마드 코더
- html 끝
- button:focus cursor: pointer; outline: none;
- calc()
- 나도코딩
- Pull
- 코딩테스트
- WEB2-JavaScript
- 생활코딩
- 할만한데?
- error: ENOENT: no such file or directory
- li 태그
- Today
- Total
목록알고리즘 문제 (21)
코딩응애의 개발블로그
백준 2438번 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().trim().split('\n'); solution(+input[0]); function solution(N) { let result = '' for(let i=1; i
백준 11720 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().trim().split('\n'); solution(input[0], input[1]); function solution(N, testcase) { let sum = 0; for (let i = 0; i < N; i++) { sum = sum + Number(testcase[i]); } console.log(sum) } for문은 문제없이 한번에 구현했는데 입력을 직접 구현하는 과정에서 계속..
백준 11718, 119719 둘다 그대로 출력하기란 문제인데 둘다 같은 코드를 제출을 해도 맞았습니다가 나옴. 처음에 11718번 제출할때 코드는 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().trim().split('\n'); const testcase = []; for(let i=0; i
백준 1000번 오랜만에 풀다 보니 입력 코드 구현할 때 살짝 헷갈렸음 tlqk; 백준 10950번 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().trim().split('\n'); const testcase = []; for (let i = 1; i +value)); } solution(+input[0],testcase); function solution(T,testcase) { // for(let i =0; i
백준 2775번 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().split('\n'); const T = Number(input.shift()); solution(T); function solution(T) { for (let i = 0; i Array(n + 1..
백준 1712번 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().split('\n'); input = input[0].split(' ').map(value => +value); solution(input[0], input[1], input[2]); function solution(A, B, C) { if (C-B +value); solution(input[0], input[1], input[2]); function solution(A, B, V) { co..
백준 2525번 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().split('\n'); const [inputA, inputB] = input[0].split(' ').map(value => +value); const inputC = input[1].split('\n').map(value => +value); solution(inputA, inputB, +inputC); function solution(A, B, C) { let cMin = (B + C)..
복습 겸해서 1단계부터 다시 풀어보면서 정리 할만한거는 정리하는 식으로 할거임 백준 1000번 const fs = require('fs'); const filePath = process.platform === 'linux' ? '/dev/stdin' : './input.txt'; let input = fs.readFileSync(__dirname + '/input.txt').toString().split('\n'); input = input[0].split(' ').map(value => +value); solution(input[0],input[1]); function solution(A,B) { console.log(A+B); } 처음에 이 문제를 풀었을때는 입력받는 문장을 input = input[..