Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Aperiodic solution in Creative category for Periodic Table by veky
def E(n,q,l):h=2*l+1;n-=h;return'2'*n+'1'*(h-abs(n))+'0'*-n
O=[(p-l,l)for p in range(1,9)for l in reversed(range(p-p//2))]
j,S=lambda E,c,O:" ".join(E(c[o],*o)for o in O if c[o]),sum(([o]*(4*o[1]+2)for o in O),[])
def checkio(w,I=__import__):
C=lambda z:I("collections").Counter(S[:z]);s=I("re").findall('[A-Z][a-z]*','HHeLiBeBCNOFNeNaMgAlSiPSClArKCaScTiVCrMnFeCoNiCuZnGaGeAsSeBrKrRbSrYZrNbMoTcRuRhPdAgCdInSnSbTeIXeCsBaLaCePrNdPmSmEuGdTbDyHoErTmYbLuHfTaWReOsIrPtAuHgTlPbBiPoAtRnFrRaAcThPaUNpPuAmCmBkCfEsFmMdNoLrRfDbSgBhHsMtDsRgCnUutFlUupLvUusUuo')
z=-~s.index(w);c=C(z);g=S.index((max(p for p,l in c if l==0),0))
for x,i in zip((z in{24,29},40
Feb. 26, 2014
Comments: