728x90 반응형 17141 연구소22 17142 연구소 3 https://www.acmicpc.net/problem/17142 17142번: 연구소 3 인체에 치명적인 바이러스를 연구하던 연구소에 승원이가 침입했고, 바이러스를 유출하려고 한다. 바이러스는 활성 상태와 비활성 상태가 있다. 가장 처음에 모든 바이러스는 비활성 상태이고 www.acmicpc.net #include #include #include #include #include using namespace std; #define N_SIZE 51 int dy[4] = { 0,1,0,-1 }; int dx[4] = { 1,0,-1,0 }; int N, M;//연구소 크기, 바이러스 개수 int virusMap[N_SIZE][N_SIZE];//입력되는 맵 int ret;//최종값 저장 vectorD;//.. 2020. 8. 20. 17141 연구소2 https://www.acmicpc.net/problem/17141 17141번: 연구소 2 인체에 치명적인 바이러스를 연구하던 연구소에 승원이가 침입했고, 바이러스를 유출하려고 한다. 승원이는 연구소의 특정 위치에 바이러스 M개를 놓을 것이고, 승원이의 신호와 동시에 바이�� www.acmicpc.net #include #include #include #include #include using namespace std; #define MIN(a,b) (((a)>(b)) ? (b) :(a)) #define MAX(a,b) (((a) 2020. 8. 19. 이전 1 다음 728x90 반응형