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

签到题。

int n;

int main()
{
    cin>>n;

    int res=0;
    for(int i=0;i<n;i++)
    {
        int score,w;
        cin>>w>>score;
        res+=w*score;
    }
    cout<<max(res,0)<<endl;
    //system("pause");
    return 0;
}
posted @ 2021-03-14 12:08  Dazzling!  阅读(65)  评论(0编辑  收藏  举报