zer0-star / Nim-ACL

ACL (AtCoder Library) implementation in Nim
Creative Commons Zero v1.0 Universal
22 stars 3 forks source link

maxflowを修正 #23

Closed chaemon closed 3 years ago

chaemon commented 3 years ago

maxflowにforループをwhileに書き換えるあたりにバグがあって無限ループになってしまうことがわかったので修正しました。 ACL practice contestでverifyし、そのコードをmaxflowのドキュメントに書いておきました。

verify結果: https://atcoder.jp/contests/practice2/submissions/16806949

chaemon commented 3 years ago

document_jaはsrcの外に置くようにしておきました。

chaemon commented 3 years ago

CRTのテストを追加しました。 関数・変数のスコープを明確にするため、includeはすべてimportにしておきました。(それで動かなくなったものは動くように修正しました。)