darksider's blog

By darksider, history, 11 years ago, In English

Here is a problem from the round — Albocede DNA.

Please help me with this problem. How to approach these kinds of problems?

Thank you!

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
11 years ago, hide # |
Rev. 2  
Vote: I like it +3 Vote: I do not like it

Hint: precalc number of ways to get aaa(i times)...bbb(j times) for each prefix and number of ways to get ccc(i times)...ddd(j times) for each suffix

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

I also need help regarding the same question. Please Help.