반응형
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
- 문자열
- HTTP
- 프로그래머스 레벨 2
- javascript
- TCP
- 크롤링
- ip
- 레벨 1
- dp
- 타입스크립트
- 그래프
- dfs
- Nestjs
- socket
- 백준
- 타입 챌린지
- 소켓
- 수학
- typescript
- 자바스크립트
- Crawling
- Node.js
- HTTP 완벽 가이드
- Algorithm
- BFS
- 쉬운 문제
- 알고리즘
- 프로그래머스
- 가천대
- type challenge
Archives
- Today
- Total
목록백준 9656번 (1)
kakasoo
[node.js] 돌 게임2 ( 백준 9656번 )
const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { main(Number(line)); process.exit(); }); const main = (line) => { const answer = line % 4; if (answer === 1) { console.log("CY"); } else if (answer === 3) { console.log("CY"); } else { console.log("SK"); } }; 상식적으로 당연하지 않나. 1개를 가져가면 상대는 3개, 3개를 가져..
프로그래밍/알고리즘 풀이
2021. 4. 13. 09:50