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':'..
https://www.acmicpc.net/problem/1373 1373번: 2진수 8진수 첫째 줄에 2진수가 주어진다. 주어지는 수의 길이는 1,000,000을 넘지 않는다. www.acmicpc.net const fs = require('fs'); let N = fs.readFileSync("./dev/stdin").toString().trim(); let answer = ''; while(N.length>3){ let S = N.slice(N.length-3,N.length) answer = parseInt(S,2).toString(8)+answer N = N.slice(0,N.length-3) } console.log(parseInt(N,2).toString(8)+answer)
- Total
- Today
- Yesterday
- BFS
- 다이나믹프로그래밍
- 다이나밍프로그래밍
- MOD
- 동적프로그래밍
- node.js
- 롱베케이션
- 면접비
- 서버점검
- 서버개발
- 최소공통조상
- 은둔청년체험
- 로드나인
- MySQL
- 면접질문
- DB 생성
- 투포인터
- create db
- create databases;
- 그래프
- 개발자면접
- 투포인터 연습
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |