@[Fraciton](/space/show?uid=32107)
这句`const int INF = 0x7f;`
```cpp
0x7f == 127
```
...
这个应该这么用。。。
```cpp
const int INF = 0x7f;
memset(dis,INF,sizeof(dis));
//最后效果是这样的:
//dis = {0x7f7f7f7f <repeat XXX times>}
```
或者
```cpp
const int INF = 0x7f7f7f7f;
for(...)
{
...
dis[i] = INF;
...
}
```
by PBCWZCC @ 2018-07-22 00:28:46
用迪杰斯特拉
by 洛必达法则 @ 2018-10-27 15:24:38