You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
intfloyd()
{
memcpy(e, d, sizeof(e));
for (int k = 0; k < n; k++)
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
{
e[i][j] |= e[i][k] & e[k][j];
if (e[i][j] == e[j][i] && e[i][j] && i != j) // 此处 i != jreturn -1;
}
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
if (e[i][j] == e[j][i] && !e[i][j] && i != j)
return0;
return1;
}
hack 数据
4 6
C<D
C<B
B<A
C<D
D<A
A<A
0 0
The text was updated successfully, but these errors were encountered:
MicroMilo
changed the title
配套光盘/例题/0x60 图论/0x61 最短路/Sorting It All Out/POJ1094 Sorting It All Out.cpp 一处有误
例题/0x60 图论/0x61 最短路/Sorting It All Out/POJ1094 Sorting It All Out.cpp 一处有误
Sep 16, 2022
在本仓库的 std 中,没有考虑输入本身带有矛盾的情况
acwing 过不去了
poj 还是能过去的
hack 数据
The text was updated successfully, but these errors were encountered: