(백준) C++ 2644도 계산
https://www.acmicpc.net/problem/2644 2644호: 합동 계산 개인 1, 2, 3, … , n(1 ≤ n ≤ 100)은 각각 연속된 숫자로 표시됩니다. 입력 파일의 첫 번째 줄은 총 인원수 n을 가져오고 두 번째 줄은 학위를 계산할 서로 다른 두 사람의 수를 가져옵니다. www.acmicpc.net #include <iostream> #include <vector> #include <algorithm>4 #include <queue> constexpr int unvisited = 0; constexpr int … Read more