202012-1 期末预测之安全指数

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    int score,w;
    int sum=0;
    while(n--){
        cin>>w>>score;
        sum+=w*score;
    }
    cout<<max(0,sum);
    return 0;
}

没什么难度

posted @ 2021-03-15 20:17  南理工学渣  阅读(38)  评论(0)    收藏  举报