techaddict's blog

By techaddict, 12 years ago, In English

Could somebody explain the approach for Problem B, 157-div1 Little Elephant and Elections, especially the DP approach that is mentioned in the editorials (mainly how to write the state dp ( state[position][less][count] ))

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it

By techaddict, 12 years ago, In English

problem link [http://www.codeforces.com/contest/248/problem/B]

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it