赞
踩
按题目公式算出来
n, tot = int(input()), 0 for i in range(n): w, score = map(int, input().split()) tot += w * score print(max(0, tot))