일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 백준 14725번
- ERD
- 게임 서버 아키텍처
- 백준 5670번
- insomnia
- HTTP
- 그리디
- string
- Next
- PROJECT
- ccw 알고리즘
- MySQL
- 트라이
- router
- 백준 9328번
- html5
- Express.js
- 백준 16565번
- map
- 자바스크립트
- Github
- trie
- pm2
- Prisma
- 이분 탐색
- 그래프 탐색
- MongoDB
- branch
- localstorage
- JavaScript
Archives
- Today
- Total
목록백준 5670번 (1)
dh_0e

개미굴에서 EOF, 소수점 처리가 포함된 변형 문제while (cin >> n)로 EOF 처리, 소수점 처리 잘 해주고 Trie에 size라는 변수, find 함수에 적당한 식을 추가하면 쉽게 해결할 수있음메모리 초과가 났지만 소멸자가 제대로 작동하지 않았음 >> 소멸자 잘 작동하게 수정하니 바로 해결됨 #include#include#includeusing namespace std;char d[100001][81];struct Trie { bool finish; int size; Trie* next[26]; Trie() :finish(false),size(0) { memset(next, 0, sizeof(next)); } ~Trie() { for (int i = 0; i insert(key + 1)..
알고리즘/Baekjoon
2025. 3. 10. 00:08