3 of 3
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
CoffeeScript, (削除) 92 (削除ここまで) 69 bytes
Based of Qwertiy's answer and updates:
f=(n)->s='1';(s=s.replace /(.?2|.$)/,(m)->[1,2,10][+m]||20)while--n;s
# older version, 92 bytes
f=(n)->s='1';(s=s.replace /(^2|02|12|20|.$)/,(m)->{0:1,1:2,2:10,12:20,20:100}[+m])while--n;s
rink.attendant.6
- 2.9k
- 17
- 30