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 |
Tags
- ue5
- 브루트포스
- BFS
- 트리
- 투 포인터
- Team Fortress 2
- c++
- 우선순위 큐
- 누적 합
- 문자열
- 백준
- 다익스트라
- 유니온 파인드
- 자료구조
- 재귀
- 백트래킹
- 시뮬레이션
- VR
- XR Interaction Toolkit
- 유니티
- 그래프
- 스택
- 그리디 알고리즘
- DFS
- 수학
- 구현
- 정렬
- 다이나믹 프로그래밍
- 알고리즘
- Unreal Engine 5
Archives
- Today
- Total
목록선물이 넘쳐흘러 C++ (1)
1일1알

직원과 선물을 구조체로 관리하면서 1초마다 일어나는 상황을 전부 시뮬레이션 하면서 문제를 해결하였다. 다른 사람들 코드는 내 코드보다 엄청 짧던데 어떻게 저렇게 짧게 짜는거지... #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int b, n, m; int ans = 0; int findRow[3] = { 1,0,-1 }; int findCol[3] = { 0,1,0 }; int dRow[3] = { 0,1,0 }; int dCol[3] = { 1,0,-1 }; str..
알고리즘
2022. 2. 2. 15:38