Created
March 4, 2014 13:20
-
-
Save mrz1988/9346395 to your computer and use it in GitHub Desktop.
Project Euler Problem #2 in ArnoldC (https://github.com/lhartikk/ArnoldC)
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
IT'S SHOWTIME | |
HEY CHRISTMAS TREE isLessThan4mil | |
YOU SET US UP @NO PROBLEMO | |
HEY CHRISTMAS TREE fourMillion | |
YOU SET US UP 25000 | |
GET TO THE CHOPPER fourMillion | |
HERE IS MY INVITATION fourMillion | |
GET UP 25000 | |
ENOUGH TALK | |
GET TO THE CHOPPER fourMillion | |
HERE IS MY INVITATION fourMillion | |
YOU'RE FIRED 80 | |
ENOUGH TALK | |
HEY CHRISTMAS TREE first | |
YOU SET US UP 1 | |
HEY CHRISTMAS TREE second | |
YOU SET US UP 2 | |
HEY CHRISTMAS TREE next | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE sum | |
YOU SET US UP 2 | |
HEY CHRISTMAS TREE n | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE mod2 | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE isEven | |
YOU SET US UP @I LIED | |
STICK AROUND isLessThan4mil | |
GET TO THE CHOPPER next | |
HERE IS MY INVITATION first | |
GET UP second | |
ENOUGH TALK | |
GET YOUR ASS TO MARS mod2 | |
DO IT NOW modulo next 2 | |
GET TO THE CHOPPER isEven | |
HERE IS MY INVITATION mod2 | |
YOU ARE NOT YOU YOU ARE ME 0 | |
ENOUGH TALK | |
BECAUSE I'M GOING TO SAY PLEASE isEven | |
GET TO THE CHOPPER sum | |
HERE IS MY INVITATION sum | |
GET UP next | |
ENOUGH TALK | |
YOU HAVE NO RESPECT FOR LOGIC | |
GET TO THE CHOPPER first | |
HERE IS MY INVITATION second | |
ENOUGH TALK | |
GET TO THE CHOPPER second | |
HERE IS MY INVITATION next | |
ENOUGH TALK | |
GET YOUR ASS TO MARS isLessThan4mil | |
DO IT NOW lessThan next fourMillion | |
CHILL | |
TALK TO THE HAND sum | |
YOU HAVE BEEN TERMINATED | |
LISTEN TO ME VERY CAREFULLY lessThan | |
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE operand1 | |
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE operand2 | |
GIVE THESE PEOPLE AIR | |
HEY CHRISTMAS TREE notGreaterThan | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE equalTo | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE notEqualTo | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE lessThan | |
YOU SET US UP 0 | |
GET TO THE CHOPPER notGreaterThan | |
HERE IS MY INVITATION operand2 | |
LET OFF SOME STEAM BENNET operand1 | |
ENOUGH TALK | |
GET TO THE CHOPPER equalTo | |
HERE IS MY INVITATION operand1 | |
YOU ARE NOT YOU YOU ARE ME operand2 | |
ENOUGH TALK | |
GET YOUR ASS TO MARS notEqualTo | |
DO IT NOW not equalTo | |
GET TO THE CHOPPER lessThan | |
HERE IS MY INVITATION notGreaterThan | |
KNOCK KNOCK notEqualTo | |
ENOUGH TALK | |
I'LL BE BACK lessThan | |
HASTA LA VISTA, BABY | |
LISTEN TO ME VERY CAREFULLY not | |
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE var | |
GIVE THESE PEOPLE AIR | |
HEY CHRISTMAS TREE result | |
YOU SET US UP 0 | |
GET TO THE CHOPPER result | |
HERE IS MY INVITATION var | |
YOU ARE NOT YOU YOU ARE ME @I LIED | |
ENOUGH TALK | |
I'LL BE BACK result | |
HASTA LA VISTA, BABY | |
LISTEN TO ME VERY CAREFULLY modulo | |
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE dividend | |
I NEED YOUR CLOTHES YOUR BOOTS AND YOUR MOTORCYCLE divisor | |
GIVE THESE PEOPLE AIR | |
HEY CHRISTMAS TREE quotient | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE remainder | |
YOU SET US UP 0 | |
HEY CHRISTMAS TREE product | |
YOU SET US UP 0 | |
GET TO THE CHOPPER quotient | |
HERE IS MY INVITATION dividend | |
HE HAD TO SPLIT divisor | |
ENOUGH TALK | |
GET TO THE CHOPPER product | |
HERE IS MY INVITATION divisor | |
YOU'RE FIRED quotient | |
ENOUGH TALK | |
GET TO THE CHOPPER remainder | |
HERE IS MY INVITATION dividend | |
GET DOWN product | |
ENOUGH TALK | |
I'LL BE BACK remainder | |
HASTA LA VISTA, BABY |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This demonstrates the "larger int" hack (for four million) and extending ArnoldC to support less than and not operators.