diff --git a/TangDou/LanQiaoBei/LanQiao14STEMA202212/4.cpp b/TangDou/LanQiaoBei/LanQiao14STEMA202212/4.cpp index b6a8554..3d163df 100644 --- a/TangDou/LanQiaoBei/LanQiao14STEMA202212/4.cpp +++ b/TangDou/LanQiaoBei/LanQiao14STEMA202212/4.cpp @@ -38,10 +38,6 @@ int main() { for (int i = 1; i <= n; i++) cin >> a[i]; dfs(0, 0, 0); - - if (res == INF) - cout << -1 << endl; - else - cout << res << endl; + cout << res << endl; return 0; } \ No newline at end of file