Skip to content

Commit

Permalink
Merge pull request #156 from yosupo06/patch/constraints
Browse files Browse the repository at this point in the history
clarify constraints just in case
  • Loading branch information
yosupo06 authored Mar 17, 2023
2 parents 929ab27 + 841ee3f commit e1c0e55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions document_en/mincostflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ It returns $g$ as the list of the changepoints, that satisfies the followings.
Let $x$ be the maximum cost among all edges.

- $s \neq t$
- $0 \leq s, t \lt n$
- You can't call `min_cost_slope` or `min_cost_max_flow` multiple times.
- The total amount of the flow is in `Cap`.
- The total cost of the flow is in `Cost`.
Expand Down
1 change: 1 addition & 0 deletions document_ja/mincostflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ vector<pair<Cap, Cost>> graph.slope(int s, int t, Cap flow_limit);
辺のコストの最大を $x$ として

- $s \neq t$
- $0 \leq s, t \lt n$
- `min_cost_slope``min_cost_max_flow`を合わせて複数回呼んだときの挙動は未定義
- `s`から`t`へ流したフローの流量が `Cap` に収まる。
- 流したフローのコストの総和が `Cost` に収まる。
Expand Down

0 comments on commit e1c0e55

Please sign in to comment.