일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Github
- Express.js
- ERD
- map
- DP
- router
- string
- 게임 서버 아키텍처
- Keys
- MySQL
- JavaScript
- html5
- 그리디
- ccw 알고리즘
- 자바스크립트
- Next
- 이분 탐색
- trie
- pm2
- vector insert
- branch
- PROJECT
- 백준 1918번
- MongoDB
- Prisma
- localstorage
- insomnia
- 트라이
Archives
- Today
- Total
목록휴대폰 자판 (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