Created
December 26, 2020 00:59
-
-
Save chubbc/92e940339374c84f9d346f9ba29dfd5e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(d>=1) { | |
d--; c++; | |
} else if(c>=9) { | |
c-=9; b+=1; d+=8; | |
} else if(c>=8) { | |
c-=8; | |
if(p>=1) { p--; q+=7; d+=8; } | |
else if(f>=1) { f--; b++; d+=8; } | |
else if(e>=1) { e--; d+=7; } | |
else { d+=6; } | |
} else if(c>=7) { | |
c-=7; | |
if(b>=1) { b--; f++; g++; d+=7; } | |
else { d+=8; } | |
} else if(c>=6) { | |
c-=6; | |
if(f>=1) { f--; b++; d+=6; } | |
else if(q>=M) { q-=M d+=6; } | |
else if(g>=M) { g-=M d+=6; } | |
else if(q>=1) { q--; p++; d+=6; } | |
else if(g>=1) { g--; e++; d+=6; } | |
else { d+=5; } | |
} else if(c>=5) { | |
c-=5; | |
if(a>=1&&p>=1) { a--; p--; na++; np++; d+=5; } | |
else { q-=M d+=4; } | |
} else if(c>=4) { | |
c-=4; | |
if(a>=1) { a--; na++; d+=3; } | |
else if(p>=1) { p--; np++; d+=3; } | |
else { p--; np++; d+=2; } | |
} else if(c>=3) { | |
c-=3; | |
if(na>=1) { na--; a++; d+=3; } | |
else if(np>=1) { np--; p++; d+=3; } | |
else { d+=8; } | |
} else if(c>=2) { | |
c-=2; | |
if(na>=1&&np>=1) { na--; np--; d+=2; } | |
else if(b>=1) { b--; d+=2; } | |
else { d++; } | |
} else if(c>=2) { | |
c-=1; | |
if(e>=1) { e--; out++; d++; } | |
} | |
else if (b>=1){ | |
p++; e++; d+=9; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment