A common meme on the Interwebs is the Illuminati meme, which usually involves some sort of convoluted series of mathematical operations on a number to prove that there is some vast global conspiracy controlling all the things 1.
For instance, here is proof that Jay-Z is working with the devil:
Jay Z did 22 2's first. Now 4:44
— KONNYKON-Zeus's Yout (@KONNYKON_) June 30, 2017
222 + 444= 666 #illuminati pic.twitter.com/XUfamDVQMG
To be fair, Taylor Swift is also an alleged agent of the Illuminati2, as explained in this Mashable article:
Schreck was high priestess of the Church of Satan from
1985-1990
, which is very suspicious, because Taylor Swift talks a big game about being born in1989
. Naming her smash hit album1989
is clearly TayTay LaVey's desperate attempt to emphasize that she had a normal human birth and was not cultivated in a cauldron and/or laboratory. The whole thing reeks of a coverup.
For this programming challenge, you are to write a program that decides
whether or not a series of numbers can be manipulated into yielding the
number 13
, which is a very special Illuminati number:
There are 13 members in covens and satanic cults - 12 regular members and one high priest. This is a mirroring of 12 jurors + 1 judge = 13. There are 13 high occult families that run the world.
For instance, given the tuple {1, 2, 3, 4, 5}
, you are to consider
arithmetic expressions in the following form:
(((Int1 Op1 Int2) Op2 Int3) Op3 Int4) Op4 Int5
Where Int1
, Int2
, Int3
, Int4
, and Int5
represent some permutation
of {1, 2, 3, 4, 5}
and Op1
, Op2
, Op3
, and Op4
is an arithmetic
operation such as addition, subtraction, or multiplication.
In the example above, the tuple {1, 2, 3, 4, 5}
could be manipulated into
the following expression to yield 13
:
2 + 3 + 4 + 5 - 1 = 13
Therefore, this series of numbers could be used to prove the existence of the Illuminati.
Each line of input will consist of tuples consisting of 1
to 5
elements, where each element has a value between 0
and 50
(inclusive).
You should read and process each line of input until the end of the file.
1 3 11 2 26 2 1 1 1 1 1 1 2 3 4 5 2 3 5 7 11
For each tuple, print "Illuminati!"
if there exists an arithmetic
expression (as described above) that yields 13
. Otherwise, print
"Nothing to see"
.
Nothing to see Illuminati! Nothing to see Nothing to see Illuminati! Illuminati!
This is based on the 23 out of 5 problem on the UVa Online Judge.
To submit your work, follow the same procedure you used for Reading 00:
$ cd path/to/cse-30872-fa17-assignments # Go to assignments repository $ git checkout master # Make sure we are on master $ git pull --rebase # Pull any changes from GitLab $ git checkout -b challenge08 # Create and checkout challenge08 branch $ $EDITOR challenge08/program.cpp # Edit your code $ git add challenge08/program.cpp # Stage your changes $ git commit -m "challenge08: done" # Commit your changes $ git push -u origin challenge08 # Send changes to GitLab
To check your code, you can use the .scripts/submit.py
script or curl:
$ .scripts/submit.py Submitting challenge08 assignment ... Submitting challenge08 code ... Result Success Score 6.00 $ curl -F source=@challenge08/program.cpp https://dredd.h4x0r.space/code/cse-30872-fa17/challenge08 {"score": 6, "result": "Success"}
Once you have commited your work and pushed it to GitLab, member to create a merge request. Refer to the Reading 04 TA List to determine your corresponding TA for the merge request.
Dun, Dun, Dun. ↩
It is pretty clear from her latest music video that she is at the very least influenced by our reptilian overloads, the Lizard People. ↩