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

const readline = require("readline"); const rl = readline.createInterface({ input: process.stdin, output: process.stdout, }); rl.on("line", (line) => { const [E, S, M] = line.split(" ").map(Number); let e = 1; let s = 1; let m = 1; let count = 1; while (true) { if (E === e && S === s && M === m) { console.log(count); return; } e++; s++; m++; count++; if (e > 15) { e = 1; } if (s > 28) { s = 1; }..
프로그래밍/알고리즘 풀이
2021. 5. 12. 18:54