풍선 터뜨리기1 [백준/BOJ][C++] 2346번 풍선 터뜨리기 #include #include #include using namespace std; int main() { // 쓰레드 환경이 아닐때 버퍼를 분리하여 처리속도를 빠르게 해줌 ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int N; cin >> N; deque ballonNum(N); // 풍선번호 vector paperNum(N); // 종이번호 // 풍선번호와 종이번호 입력 for (int i = 0; i > paperNum[i]; // 입력된 값 } int nextMove = 0; // 다음으로 이동하는 칸 수 // 풍선을 터뜨리는 순서대로 번.. 2023. 8. 28. 이전 1 다음