← 返回 doordash 的题目列表Dasher Pay
类型:online_judge
Given a list of records containing Dasher's work information, each record includes: Dasher's id, order id, and pay amount. Calculate the total pay for each Dasher.
Example:
Input:
[
("dasher1", "order1", 100),
("dasher1", "order2", 200),
("dasher2", "order3", 300)
]
Output:
{
"dasher1": 300,
"dasher2": 300
}
Example
Input
[("dasher1", "order1", 100), ("dasher1", "order2", 200), ("dasher2", "order3", 300)]
Output
{"dasher1": 300, "dasher2": 300}