#K4121. Loyalty Points Aggregation
Loyalty Points Aggregation
Loyalty Points Aggregation
In this problem, you are given a list of customer purchases with loyalty points. Your task is to compute the total number of loyalty points distributed. For each purchase, you are provided with a customer ID and the loyalty points earned in that purchase. Simply sum up all the points to obtain the total.
The mathematical formulation is given by: \(Total\ Points = \sum_{i=1}^{n} points_i\).
inputFormat
The input starts with an integer \(n\) indicating the number of purchases. Each of the following \(n\) lines contains two integers: the customer ID and the points earned from that purchase.
outputFormat
Output a single integer which is the total number of loyalty points distributed.
## sample3
101 20
102 15
101 30
65
</p>