Derek loves to eat dim sum, but it is always a hassle to figure out how much he is going to pay. Given a list of the prices of dishes he ordered, help Derek figure out the sum of all the dim sum dishes!
Derek also loves giving you unreasonable constraints, so he asks that your solution cannot contain any alphanumeric characters or quotation marks.
Input Specification
The first line of input will contain one integer , the number of dishes to follow.
The next lines will each contain one integer , the price of that dish.
Output Specification
Print out one integer , the total sum of all the prices.
Constraints
Sample Input
4
2
3
5
3
Sample Output
13
Comments
It's possible to pass in Python by using Unicode characters.
That was going to be a DMOJ CTF problem, but I can't use it anymore :/
Can confirm that brainfuck still lives to its name.
No one can help you, if you set this problem, you are beyond help.
You should try https://mcpt.ca/contest/dimsum
Not allowing javascript, smart decision.
Thanks for the problem! This was cool.
Ruby code golf is fun. Can somebody find a solution shorter than 247 characters?
Ruby 2 (83 characters)
Ruby 2 (80 characters)
Yes.
Ruby 2 (110 characters)
AWK (
64 characters46 characters)TIL a few things about Ruby golfing. 95 characters
Is this question possible to solve using an allowed language other than Ruby, BF or AWK?
Normally I would have allowed all languages for this problem. However due to the existence of JSFuck, JavaScript based languages are disabled.
The list of languages does not correlate to the solvability of the problem.
Although this problem can definitely be solved in other allowed languages.
Have fun exploring them.