← 返回 meta 的题目列表Calculate Library Book Operation Values
类型:online_judge
You have a list of library book operations as operations = [["acquisition", "fiction", "2", "100"], ["acquisition", "reference", "3", "60"], ["checkout", "fiction", 1], ["checkout", "reference", 1], ["reclassify", "reference", "1", "60", "100"], ["checkout", "reference", 1], ["checkout", "reference", 1]]. Compute the total value for each "checkout" operation and return a list of these values.
Example
Input
[["acquisition", "fiction", "2", "100"], ["acquisition", "reference", "3", "60"], ["checkout", "fiction", 1]]