RegMs If 2 gadi atpakaļ
vecāks
revīzija
b81758acef
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      source/_posts/oi/fence.md

+ 1 - 1
source/_posts/oi/fence.md

@@ -12,7 +12,7 @@ date: 2020-01-21 21:00:46
 
 ## 题目描述
 
-A team of $K$ workers should paint a fence which contains $N$ planks numbered from $1$ to $N$ from left to right. Each worker $i$ should sit in front of the plank $S_i$ and he may paint only a compact interval (this means that the planks from the interval should be consecutive). This interval should contain the $S_i$ plank. Also a worker should not paint more than $L_i$ planks and for each painted plank he should receive $P_i$\$. A plank should be painted by no more than one worker. All the numbers $S_i$ should be distinct.
+A team of $K$ workers should paint a fence which contains $N$ planks numbered from $1$ to $N$ from left to right. Each worker $i$ should sit in front of the plank $S_i$ and he may paint only a compact interval (this means that the planks from the interval should be consecutive). This interval should contain the $S_i$ plank. Also a worker should not paint more than $L_i$ planks and for each painted plank he should receive $P_i$\\$. A plank should be painted by no more than one worker. All the numbers $S_i$ should be distinct.
 
 Being the team's leader you want to determine for each worker the interval that he should paint, knowing that the total income should be maximal. The total income represents the sum of the workers personal income.