https://www.acmicpc.net/problem/2747 2747번: 피보나치 수 피보나치 수는 0과 1로 시작한다. 0번째 피보나치 수는 0이고, 1번째 피보나치 수는 1이다. 그 다음 2번째 부터는 바로 앞 두 피보나치 수의 합이 된다. 이를 식으로 써보면 Fn = Fn-1 + Fn-2 (n ≥ 2)가 www.acmicpc.net const fs = require('fs'); const X = +fs.readFileSync("./dev/stdin").toString().trim() let memo = new Array(46).fill(null); memo[0] = 0; memo[1] = 1; memo[2] = 1; function pibo(N){ if(memo[N]==null){ memo[N..
https://www.acmicpc.net/problem/1629 1629번: 곱셈 첫째 줄에 A, B, C가 빈 칸을 사이에 두고 순서대로 주어진다. A, B, C는 모두 2,147,483,647 이하의 자연수이다. www.acmicpc.net BigInt! BigInt! BigInt! BigInt! BigInt! BigInt! const fs = require('fs'); const [A,B,C] = fs.readFileSync("./dev/stdin").toString().trim().split(' ').map(BigInt) function pow(a,b){ if(b==0){ return BigInt(1); }else{ const temp = pow(a, BigInt(parseInt(b/BigInt..
https://www.acmicpc.net/problem/11576 11576번: Base Conversion 타임머신을 개발하는 정이는 오랜 노력 끝에 타임머신을 개발하는데 성공하였다. 미래가 궁금한 정이는 자신이 개발한 타임머신을 이용하여 500년 후의 세계로 여행을 떠나게 되었다. 500년 후의 www.acmicpc.net const fs = require('fs'); const input = fs.readFileSync("./dev/stdin").toString().trim().split('\n').map(v=>v.split(' ').map(Number)); const [A,B] = input[0] const [N] = input[1] const nums = input[2].reverse(); c..
https://www.acmicpc.net/problem/2745 2745번: 진법 변환 B진법 수 N이 주어진다. 이 수를 10진법으로 바꿔 출력하는 프로그램을 작성하시오. 10진법을 넘어가는 진법은 숫자로 표시할 수 없는 자리가 있다. 이런 경우에는 다음과 같이 알파벳 대문자를 www.acmicpc.net const fs = require('fs'); const input = fs.readFileSync("./dev/stdin").toString().trim().split(' '); let answer = 0; let S = input[0].split('') const B = input[1]*1 const notation = { '0':0, '1':1, '2':2, '3':3, '4':4, '5':5..
https://www.acmicpc.net/problem/11005 11005번: 진법 변환 2 10진법 수 N이 주어진다. 이 수를 B진법으로 바꿔 출력하는 프로그램을 작성하시오. 10진법을 넘어가는 진법은 숫자로 표시할 수 없는 자리가 있다. 이런 경우에는 다음과 같이 알파벳 대문자를 www.acmicpc.net const fs = require('fs'); let [N,B] = fs.readFileSync("./dev/stdin").toString().trim().split(' ').map(Number); let answer = ''; if(N==0){ console.log(0) }else{ while(N>0){ let s = notation(N%B); answer = s+answer; N = Ma..
https://www.acmicpc.net/problem/17103 17103번: 골드바흐 파티션 첫째 줄에 테스트 케이스의 개수 T (1 ≤ T ≤ 100)가 주어진다. 각 테스트 케이스는 한 줄로 이루어져 있고, 정수 N은 짝수이고, 2 < N ≤ 1,000,000을 만족한다. www.acmicpc.net const fs = require('fs'); const input = fs.readFileSync("./dev/stdin").toString().trim().split('\n').map(Number); const nums = input.splice(1) const answer = []; let prime = new Array(1000001).fill(true); prime[0] = false; p..
https://www.acmicpc.net/problem/17087 17087번: 숨바꼭질 6 수빈이는 동생 N명과 숨바꼭질을 하고 있다. 수빈이는 현재 점 S에 있고, 동생은 A1, A2, ..., AN에 있다. 수빈이는 걸어서 이동을 할 수 있다. 수빈이의 위치가 X일때 걷는다면 1초 후에 X+D나 X-D로 이 www.acmicpc.net const fs = require('fs'); const input = fs.readFileSync("./dev/stdin").toString().trim().split('\n').map(v=>v.split(' ').map(Number)); const [N,S] = input[0] const brother = input[1].map(v=>Math.abs(S-v));..
https://www.acmicpc.net/problem/1212 1212번: 8진수 2진수 첫째 줄에 8진수가 주어진다. 주어지는 수의 길이는 333,334을 넘지 않는다. www.acmicpc.net const fs = require('fs'); let N = fs.readFileSync("./dev/stdin").toString().trim().split(''); let answer = ''; const bin ={ '0':'000', '1':'001', '2':'010', '3':'011', '4':'100', '5':'101', '6':'110', '7':'111', } const first = { '0':'0', '1':'1', '2':'10', '3':'11', '4':'100', '5':'..
- Total
- Today
- Yesterday
- node.js
- 동적프로그래밍
- 다이나밍프로그래밍
- 다이나믹프로그래밍
- 서버개발
- create databases;
- MOD
- 면접질문
- BFS
- 그래프
- create db
- 개발자면접
- 로드나인
- 투포인터 연습
- 투포인터
- DB 생성
- MySQL
- 면접비
- 은둔청년체험
- 최소공통조상
- 서버점검
- 롱베케이션
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |