일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- iOS14
- 이분그래프
- string 메소드
- Django Nodejs 차이점
- string 함수
- 알고리즘 공부방법
- 매크로
- 자료구조
- 백준
- correlation coefficient
- c++
- Django의 편의성
- EOF
- getline
- double ended queue
- 구조체와 클래스의 공통점 및 차이점
- 표준 입출력
- 프레임워크와 라이브러리의 차이
- UI한글변경
- scanf
- 엑셀
- 연결요소
- Django란
- 시간복잡도
- 입출력 패턴
- vscode
- k-eta
- 장고란
- 입/출력
- 2557
Archives
- Today
- Total
목록알고리즘/백준풀이4. 덱 (1)
Storage Gonie
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Qijzr/btquOFTMHQD/C0vVYn3jOCYv3zJyJnfJ30/img.png)
문제 풀이 # C++(직접구현) 심화과정을 거치고 난 뒤 할 것 # C++(STL 사용) #include #include using namespace std; int main(void) { ios::sync_with_stdio(false); deque deq; int N; cin >> N; while(N--) { string cmd; cin >> cmd; if (cmd == "push_front") { int num; cin >> num; deq.push_front(num); } else if (cmd == "push_back") { int num; cin >> num; deq.push_back(num); } else if (cmd == "pop_front") { if (!deq.empty()){ cout
알고리즘/백준풀이4. 덱
2019. 4. 25. 16:13