• 2024-06-08P2731 [USACO3.3] 骑马修栅栏 Riding the Fences
    原题链接题解贪心走最小的点,由于每个点都有偶数条边,所以能进入就一定能出去code#include<bits/stdc++.h>usingnamespacestd;structnode{intto,id;};vector<node>G[505];intlate[505]={0};intvis[1044]={0};intstart=1,finish;stack<int>st;intn,m;