p1038

洛谷 Luogu P1038 [NOIP2003 提高组] 神经网络

这题看着很吓人实则很简单。求输出层,正着求很麻烦,因为知不道谁连向这个点,所以可以反向建边,反着求。 拓扑+dfs,时间复杂度 $\text{O(n + m)}$ ```C++ #include #include #include #define N 105 #define M (N * N / 2 ......
神经网络 神经 Luogu P1038 网络
共1篇  :1/1页 首页上一页1下一页尾页