View as PDF

Points: 15
Time limit: 1.4s
Memory limit: 64M

Author:
Problem type

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.

#### Sample Input

4
2
3
5
3

#### Sample Output

13

• commented on Aug. 21, 2020, 8:53 p.m.

It's possible to pass in Python by using Unicode characters.

• commented on Aug. 21, 2020, 9:13 p.m.

That was going to be a DMOJ CTF problem, but I can't use it anymore :/

• commented on Dec. 24, 2019, 9:14 p.m.

Can confirm that brainfuck still lives to its name.

• commented on Aug. 25, 2019, 9:43 p.m.

No one can help you, if you set this problem, you are beyond help.

• commented on Aug. 23, 2019, 5:48 p.m.

Not allowing javascript, smart decision.

• commented on Aug. 23, 2019, 5:05 a.m. edited

Thanks for the problem! This was cool.

Ruby code golf is fun. Can somebody find a solution shorter than 247 characters?

• commented on Aug. 24, 2019, 11:26 a.m. edited
• commented on Aug. 24, 2019, 7:47 p.m.
• commented on Aug. 23, 2019, 1:32 p.m. edited
• commented on Aug. 23, 2019, 8:03 p.m.

TIL a few things about Ruby golfing. 95 characters

• commented on Aug. 22, 2019, 9:44 p.m. edit 2

Is this question possible to solve using an allowed language other than Ruby, BF or AWK?

• commented on Aug. 23, 2019, 2:59 a.m.

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.