Abeceda
의견: 0
\(6^{th}\) round, March \(4^{th}\), 2011
Mirko has developed his own video game. The game has N levels and each successfully completed level
is worth a certain number of points, which add up to the player’s total score on an online rank list of all
players. Mirko has ordered his levels by difficulty from the easiest to the most difficult, but he has
made a mistake and made some difficult levels worth less points than some of the easier ones.
To overcome this problem, Mirko has decided to reduce the number of points for certain levels with
the goal of making the point sequence strictly increasing (so in the end easier levels are worth less
points than the difficult ones).
Help Mirko fix his video game in such a way that the total number of points reduced is minimal.
Final points have to be positive. You can assume that a solution exists for each test case.
The first line of input contains a positive integer \(N\) (\(N \le 100\)), the number of words.
The following \(N\) lines contain the list of words found, one word per line. Each word consists of at most \(10\) lowercase letters.
The first and and only line of output should contain one numb\(er - th\)e minimum total number of points
Mirko has to subtract to fulfill requirements given in the task statement above.
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Test 1 | 2점 | None |
Test 2 | 2점 | None |
Test 3 | 2점 | None |
Test 4 | 2점 | None |
Test 5 | 2점 | None |
Test 6 | 2점 | None |
Test 7 | 2점 | None |
Test 8 | 2점 | None |
Test 9 | 2점 | None |
Test 10 | 2점 | None |
Test 11 | 2점 | None |
Test 12 | 2점 | None |
Test 13 | 2점 | None |
Test 14 | 2점 | None |
Test 15 | 2점 | None |
Test 16 | 2점 | None |
Test 17 | 2점 | None |
Test 18 | 2점 | None |
Test 19 | 2점 | None |
Test 20 | 2점 | None |
Test 21 | 2점 | None |
Test 22 | 2점 | None |
Test 23 | 2점 | None |
Test 24 | 2점 | None |
Test 25 | 2점 | None |
Test 26 | 2점 | None |
Test 27 | 2점 | None |
Test 28 | 2점 | None |
Test 29 | 2점 | None |
Test 30 | 2점 | None |
Test 31 | 2점 | None |
Test 32 | 2점 | None |
Test 33 | 2점 | None |
Test 34 | 2점 | None |
Test 35 | 2점 | None |
Test 36 | 2점 | None |
Test 37 | 2점 | None |
Test 38 | 2점 | None |
Test 39 | 2점 | None |
Test 40 | 2점 | None |
Test 41 | 2점 | None |
Test 42 | 2점 | None |
Test 43 | 2점 | None |
Test 44 | 2점 | None |
Test 45 | 2점 | None |
Test 46 | 2점 | None |
Test 47 | 1점 | None |
Test 48 | 1점 | None |
Test 49 | 1점 | None |
Test 50 | 1점 | None |
Test 51 | 1점 | None |
Test 52 | 1점 | None |
Test 53 | 1점 | None |
Test 54 | 1점 | None |
5
ula
uka
klua
kula
alluka4
jaja
baba
baja
beba!3
marko
darko
zarko?평가 및 의견
Abeceda
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Abeceda