Skip to main content
Make dict smaller
Source Link
rrauenza
  • 811
  • 5
  • 7

Python, 530 529529 528 524 bytes

import zlib as Holy
B=list("NNAAAnAAnnAnaAannnaaaaNaAAnNanAaAanNNaNNaNaanNNANanNNANaAnAaANANAAnAaANNnAanAaNnAaAANNAaAnNANAaaANNAanAaNaNNNAaNNanAAnNNnaaaNANANANnnaaaNaaAAAANaNaNaNAnNAAAAaaaaANAaNnnAaAaNAAaANNnaaNnNnaannaaAaananannNnAAAAAanAananANAnaAAnANAAaaaAaaanaaAAaanNAnanAAnnnANAnNAnnAnnnanaNNaaaNaNNaAAnNAaaANNNANAnAaaAaNaANnNNNaaAanaaaanaaaaaAaAaNnNnnaAnANaNnnANanNA")
A={'N':'11'A=dict(N='11','A':'01'A='01','n':'10'n='10','a':'00'}a='00')   
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while( B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)

Python, 530 529 bytes

import zlib as Holy
B=list("NNAAAnAAnnAnaAannnaaaaNaAAnNanAaAanNNaNNaNaanNNANanNNANaAnAaANANAAnAaANNnAanAaNnAaAANNAaAnNANAaaANNAanAaNaNNNAaNNanAAnNNnaaaNANANANnnaaaNaaAAAANaNaNaNAnNAAAAaaaaANAaNnnAaAaNAAaANNnaaNnNnaannaaAaananannNnAAAAAanAananANAnaAAnANAAaaaAaaanaaAAaanNAnanAAnnnANAnNAnnAnnnanaNNaaaNaNNaAAnNAaaANNNANAnAaaAaNaANnNNNaaAanaaaanaaaaaAaAaNnNnnaAnANaNnnANanNA")
A={'N':'11','A':'01','n':'10','a':'00'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)

Python, 530 529 528 524 bytes

import zlib as Holy
B=list("NNAAAnAAnnAnaAannnaaaaNaAAnNanAaAanNNaNNaNaanNNANanNNANaAnAaANANAAnAaANNnAanAaNnAaAANNAaAnNANAaaANNAanAaNaNNNAaNNanAAnNNnaaaNANANANnnaaaNaaAAAANaNaNaNAnNAAAAaaaaANAaNnnAaAaNAAaANNnaaNnNnaannaaAaananannNnAAAAAanAananANAnaAAnANAAaaaAaaanaaAAaanNAnanAAnnnANAnNAnnAnnnanaNNaaaNaNNaAAnNAaaANNNANAnAaaAaNaANnNNNaaAanaaaanaaaaaAaAaNnNnnaAnANaNnnANanNA")
A=dict(N='11',A='01',n='10',a='00')   
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while B:T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)
Change the map to make a better Nanananan
Source Link
rrauenza
  • 811
  • 5
  • 7

Python, 530 529 bytes

import zlib as Holy
B=list("NNnnnAnnAAnAanaAAAaaaaNannANaAnanaANNaNNaNaaANNnNaANNnNanAnanNnNnnAnanNNAnaAnaNAnannNNnanANnNnaanNNnaAnaNaNNNnaNNaAnnANNAaaaNnNnNnNAAaaaNaannnnNaNaNaNnANnnnnaaaanNnaNAAnanaNnnanNNAaaNANAaaAAaanaaAaAaAANAnnnnnaAnaAaAnNnAannAnNnnaaanaaaAaannaaANnAaAnnAAAnNnANnAAnAAAaAaNNaaaNaNNannANnaanNNNnNnAnaanaNanNANNNaanaAaaaaAaaaaananaNANAAanAnNaNAAnNaANn""NNAAAnAAnnAnaAannnaaaaNaAAnNanAaAanNNaNNaNaanNNANanNNANaAnAaANANAAnAaANNnAanAaNnAaAANNAaAnNANAaaANNAanAaNaNNNAaNNanAAnNNnaaaNANANANnnaaaNaaAAAANaNaNaNAnNAAAAaaaaANAaNnnAaAaNAAaANNnaaNnNnaannaaAaananannNnAAAAAanAananANAnaAAnANAAaaaAaaanaaAAaanNAnanAAnnnANAnNAnnAnnnanaNNaaaNaNNaAAnNAaaANNNANAnAaaAaNaANnNNNaaAanaaaanaaaaaAaAaNnNnnaAnANaNnnANanNA")
A={'A''N':'10''11','a''A':'00''01','n':'01''10','N''a':'11''00'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)

Python, 530 529 bytes

import zlib as Holy
B=list("NNnnnAnnAAnAanaAAAaaaaNannANaAnanaANNaNNaNaaANNnNaANNnNanAnanNnNnnAnanNNAnaAnaNAnannNNnanANnNnaanNNnaAnaNaNNNnaNNaAnnANNAaaaNnNnNnNAAaaaNaannnnNaNaNaNnANnnnnaaaanNnaNAAnanaNnnanNNAaaNANAaaAAaanaaAaAaAANAnnnnnaAnaAaAnNnAannAnNnnaaanaaaAaannaaANnAaAnnAAAnNnANnAAnAAAaAaNNaaaNaNNannANnaanNNNnNnAnaanaNanNANNNaanaAaaaaAaaaaananaNANAAanAnNaNAAnNaANn")
A={'A':'10','a':'00','n':'01','N':'11'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)

Python, 530 529 bytes

import zlib as Holy
B=list("NNAAAnAAnnAnaAannnaaaaNaAAnNanAaAanNNaNNaNaanNNANanNNANaAnAaANANAAnAaANNnAanAaNnAaAANNAaAnNANAaaANNAanAaNaNNNAaNNanAAnNNnaaaNANANANnnaaaNaaAAAANaNaNaNAnNAAAAaaaaANAaNnnAaAaNAAaANNnaaNnNnaannaaAaananannNnAAAAAanAananANAnaAAnANAAaaaAaaanaaAAaanNAnanAAnnnANAnNAnnAnnnanaNNaaaNaNNaAAnNAaaANNNANAnAaaAaNaANnNNNaaAanaaaanaaaaaAaAaNnNnnaAnANaNnnANanNA")
A={'N':'11','A':'01','n':'10','a':'00'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)
pre-reverse the string to avoid pop(0)
Source Link
rrauenza
  • 811
  • 5
  • 7

Python, 530530 529 bytes

import zlib as Holy
B=list("NanAaNnnaAaNnNAnnanaANANAAAAAnAAAAnANAAaaanaNAaANAANnNaNaaaNAANanNNAaaAaAAAaaAnAnnnNnnNanNaNnnnNNnAnNanAANNAAnAAANAAANNaNnNNAnNaNnAnANnANNNNNnannAnAnAANAAnnAAnanaAAnaaNANNaANANnnaANaNAAAANNNNanNaAaAaAaNNNNAAaAAAnnaNaNaNaAAAnaanNNnAaaANaaaAaANnANaaNAANaNanNANaaNNANnaANnANnaaNANnNNaNaNANnNAaNaanAaNaanAAaAaaAaanANANnAanNNAaAAAAnnnANAnNnnNNnNNNaa""NNnnnAnnAAnAanaAAAaaaaNannANaAnanaANNaNNaNaaANNnNaANNnNanAnanNnNnnAnanNNAnaAnaNAnannNNnanANnNnaanNNnaAnaNaNNNnaNNaAnnANNAaaaNnNnNnNAAaaaNaannnnNaNaNaNnANnnnnaaaanNnaNAAnanaNnnanNNAaaNANAaaAAaanaaAaAaAANAnnnnnaAnaAaAnNnAannAnNnnaaanaaaAaannaaANnAaAnnAAAnNnANnAAnAAAaAaNNaaaNaNNannANnaanNNNnNnAnaanaNanNANNNaanaAaaaaAaaaaananaNANAAanAnNaNAAnNaANn")
A={'N''A':'01''10','A''a':'00','n':'10''01','a''N':'11'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop(0)]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)

Python, 530 bytes

import zlib as Holy
B=list("NanAaNnnaAaNnNAnnanaANANAAAAAnAAAAnANAAaaanaNAaANAANnNaNaaaNAANanNNAaaAaAAAaaAnAnnnNnnNanNaNnnnNNnAnNanAANNAAnAAANAAANNaNnNNAnNaNnAnANnANNNNNnannAnAnAANAAnnAAnanaAAnaaNANNaANANnnaANaNAAAANNNNanNaAaAaAaNNNNAAaAAAnnaNaNaNaAAAnaanNNnAaaANaaaAaANnANaaNAANaNanNANaaNNANnaANnANnaaNANnNNaNaNANnNAaNaanAaNaanAAaAaaAaanANANnAanNNAaAAAAnnnANAnNnnNNnNNNaa")
A={'N':'01','A':'00','n':'10','a':'11'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop(0)]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)

Python, 530 529 bytes

import zlib as Holy
B=list("NNnnnAnnAAnAanaAAAaaaaNannANaAnanaANNaNNaNaaANNnNaANNnNanAnanNnNnnAnanNNAnaAnaNAnannNNnanANnNnaanNNnaAnaNaNNNnaNNaAnnANNAaaaNnNnNnNAAaaaNaannnnNaNaNaNnANnnnnaaaanNnaNAAnanaNnnanNNAaaNANAaaAAaanaaAaAaAANAnnnnnaAnaAaAnNnAannAnNnnaaanaaaAaannaaANnAaAnnAAAnNnANnAAnAAAaAaNNaaaNaNNannANnaanNNNnNnAnaanaNanNANNNaanaAaaaaAaaaaananaNANAAanAnNaNAAnNaANn")
A={'A':'10','a':'00','n':'01','N':'11'}
T=""
POP=BIFF=POW=OOF=lambda:A[B.pop()]
while(B):T+=chr(int(POP()+POW()+BIFF()+OOF(),2))
print Holy.decompress(T)
edited body
Source Link
rrauenza
  • 811
  • 5
  • 7
Loading
Shave 10 bytes by moving dict lookup to lambda.
Source Link
rrauenza
  • 811
  • 5
  • 7
Loading
Source Link
rrauenza
  • 811
  • 5
  • 7
Loading