문제https://www.acmicpc.net/problem/1987 해설여러개의 루트 중에 가장 긴 루트를 고르는 문제백트레킹으로 해결 코드1234567891011121314151617181920212223242526272829303132333435363738394041424344454647#include bits/stdc++.h>using namespace std; int r, c;int ret;string line;char mp[24][24];vectorchar> ret_temp;int dy[4] = {-1, 0, 1, 0};int dx[4] = {0, 1, 0, -1}; void dfs(int y, int x){ ret_temp.push_back(mp[y][x]); for (int i = 0..