250x250
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
- sql
- alter
- map
- javascript
- NIO
- JPA
- set
- Properties
- 큐
- union_find
- 리소스모니터링
- GC로그수집
- List
- dfs
- BFS
- Union-find
- Java
- math
- scanner
- priority_queue
- string
- 스택
- deque
- 힙덤프
- 스프링부트
- html
- date
- spring boot
- CSS
- Calendar
Archives
- Today
- Total
목록백준18258번 (1)
매일 조금씩

큐의 명령어를 익히는 간단한 문제이다. #include #include #include #include using namespace std; int n; int main(void) { ios_base::sync_with_stdio(0); cin.tie(0);//cin 실행속도 향상 string q; queue que; cin >> n; for (int i = 0; i > q; if (q == "push") { int p = 0; cin >> p; que.push(p); } else if (q == "pop") if (que.empty()) cout
알고리즘
2020. 4. 7. 15:25