ialwaysusethisaccount's blog

By ialwaysusethisaccount, 9 years ago, In English

i want to solve this problem with DP http://codeforces.com/contest/180/problem/C there is no editorial for it. thanks for helping. i already soled it other way.

»
9 years ago, # |
  Vote: I like it 0 Vote: I do not like it

We can count for each posicion sum of numbers of Big letters righter and Small letters lefter it, and the answer will be minimum of this sum for all posicions (sorry for my English:))