Rosetta Problems

DNAの合成 (DNA Synthesizer)

https://atcoder.jp/contests/joisc2010/tasks/joisc2010_dna