반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 타입스크립트
- Nestjs
- Node.js
- 백준
- 소켓
- 문자열
- typescript
- socket
- BFS
- 크롤링
- 자바스크립트
- 가천대
- 타입 챌린지
- HTTP 완벽 가이드
- ip
- 쉬운 문제
- 레벨 1
- Crawling
- 그래프
- javascript
- type challenge
- 프로그래머스 레벨 2
- 프로그래머스
- 수학
- HTTP
- dp
- Algorithm
- dfs
- TCP
- 알고리즘
Archives
- Today
- Total
목록백준 1629번 (1)
kakasoo

const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { let [a, b, c] = line.split(" ").map(BigInt); const pow = (a, b, c) => { if (b == 0) { return BigInt(1); } const temp = pow(a, BigInt(parseInt(b / BigInt(2))), c); if (b % BigInt(2)) { return (((temp * temp) % c) * a) % c; } else { return (temp * ..
프로그래밍/알고리즘 풀이
2021. 5. 11. 17:07