CCF-CSP刷题库21-30

 

第二十一次认证

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

#include<bits/stdc++.h>
using namespace std;

int main()
{
    int n,w,s,i,j,k;
    scanf("%d",&n);
    int ans=0;
    for(i=1;i<=n;i++){
        scanf("%d%d",&w,&s);
        ans+=w*s;
    }
    printf("%d\n",max(ans,0));
    return 0;
}
View Code

相关文章:

  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-09-17
  • 2022-12-23
  • 2022-01-29
猜你喜欢
  • 2021-11-21
  • 2021-06-17
  • 2021-08-24
  • 2022-12-23
  • 2021-12-09
  • 2021-08-08
  • 2021-06-16
相关资源
相似解决方案