n = int(input()) num = 0 for i in range(n): w,score = map(int,input().split()) num = num + w * score print(max(0,num))
CCF python 期末预测之安全指数
最新推荐文章于 2025-05-01 23:36:42 发布
n = int(input()) num = 0 for i in range(n): w,score = map(int,input().split()) num = num + w * score print(max(0,num))