Dim Sum!

View as PDF

Submit solution

Points: 3
Time limit: 2.0s
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!

Input Specification

The first line of input will contain one integer \(N\), the number of dishes to follow.

The next \(N\) lines will each contain one integer \(P\), the price of that dish.

Output Specification

Print out one integer \(S\), the total sum of all the prices.

Constraints

\(1 \le N \le 10^5\)

\(1 \le P \le 100\)

Sample Input

4
2
3
5
3

Sample Output

13

Comments

There are no comments at the moment.