It's not a Bug, it's a Feature! UVA - 658 (最短路)

考虑到状态数较多,我们不选择存点,而是每次检测可行的变化方式(即边)来前进。考虑到所有的bug都只有存在和不存在两种情况所以选择使用二进制进行保存。 AC代码: #include<cstdio> #include<queue> #include<iostream> #include<cstring> using namespace std; const int inf=0x3f3f3f3f; ty
相关文章
相关标签/搜索