일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- c++
- 백준
- 자바스크립트
- 퍼셉트론
- Old-17
- tcp
- 코드엔진
- 자바
- 소프트맥스 함수
- 10809
- 웹케이알
- 크레인 인형뽑기
- 프로그래머스
- 신규 아이디 추천
- 딥러닝
- JS
- Old-14
- 코딩테스트 연습
- 네트워크
- 게임 프로그래밍
- openCV
- 리버싱
- c언어 게임
- old-1
- C언어
- 계단함수
- boj
- webhacking.kr
- 5585
- 웹해킹
Archives
- Today
- Total
목록코딩테스트 연습 (1)
SteffenLee
[프로그래머스/C++] 크레인 인형뽑기
안녕하세요. 이번에는 프로그래머스 코딩테스트 연습 Lv1 2019 카카오 개발자 겨울 인턴쉽 - 크레인 인형뽑기를 풀어봤습니다. #include #include #include using namespace std; int solution(vector board, vector moves) { int answer = 0; int n = board.size(); stack list; for(int i = 0; i < moves.size(); ++i){ int location = moves[i]-1; for(int y = 0; y < n; ++y){ if(board[y][location] == 0) continue; if(!list.empty() && list.top() == board[y][location])..
Problem Solving/Programmers
2022. 9. 14. 16:15