8075번: Word Equations - 그래프(DFS)
https://www.acmicpc.net/problem/8075 8075번: Word Equations In the first line of the standard input there is an integer x, 1 ≤ x ≤ 5, which denotes the number of equations. The following lines contain descriptions of x equations. Each description consists of 6 lines. There are no empty lines between descripti www.acmicpc.net 두 방정식의 길이가 다르다면 해가 존재할 리 없으므로 예외 처리해 준다. 각 변수의 index와 문자 1, 0을 정점으로 생각해 ..
알고리즘/baekjoon
2023. 5. 28. 19:12