[C++/PGS] [PCCP 모의고사 #2] 1번 - 실습용 로봇
https://school.programmers.co.kr/learn/courses/15009/lessons/121687 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr프로그래머스 PCCP 모의고사 2회 - 1번소요시간 약 7분 나의 풀이#include #include using namespace std;vector solution(string command) { vector answer; int dx[4] = {0,1,0,-1}; // 시계방향 up, right, down, left int dy[4] = {1,0,-1,0}; int state = 0; // dx/dy 인덱스 ..
2025. 4. 28.