일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Django의 편의성
- iOS14
- correlation coefficient
- 구조체와 클래스의 공통점 및 차이점
- string 메소드
- 백준
- UI한글변경
- 2557
- 프레임워크와 라이브러리의 차이
- 장고란
- 시간복잡도
- scanf
- 엑셀
- 입/출력
- 연결요소
- vscode
- 표준 입출력
- 매크로
- c++
- k-eta
- string 함수
- getline
- 입출력 패턴
- Django Nodejs 차이점
- double ended queue
- 자료구조
- 알고리즘 공부방법
- EOF
- 이분그래프
- Django란
Archives
- Today
- Total
목록알고리즘/백준풀이4. 덱 (1)
Storage Gonie
(1) [C++, Java] 백준 No.10866 : 덱(기본구현)
문제 풀이 # 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