[C++] 백준 18405번 : 경쟁적전염
https://www.acmicpc.net/problem/18405 18405번: 경쟁적 전염 첫째 줄에 자연수 N, K가 공백을 기준으로 구분되어 주어진다. (1 ≤ N ≤ 200, 1 ≤ K ≤ 1,000) 둘째 줄부터 N개의 줄에 걸쳐서 시험관의 정보가 주어진다. 각 행은 N개의 원소로 구성되며, 해당 위치 www.acmicpc.net 1. #include #include #include #include #include #include #include using namespace std; struct cmp{ bool operator()(pair a, pair b){ return a.first > b.first; } }; int N, K, box[200][200], S, X, Y; pair dir[..
2022. 5. 13.