Shallow-dream

 

 

#include<bits/stdc++.h>
using namespace std;
int main(){
    int red,yellow,green,N,a,b,ans=0;
    cin>>red>>yellow>>green>>N;
    while(~scanf("%d%d",&a,&b))
        if(a==0||a==1)
            ans+=b;
        else if(a==2)
            ans+=b+red;
    cout<<ans<<endl;
    return 0;
}

 

分类:

技术点:

相关文章:

  • 2021-04-28
  • 2021-09-22
  • 2021-04-09
  • 2021-11-28
  • 2021-04-27
  • 2021-04-27
  • 2021-05-19
  • 2021-09-03
猜你喜欢
  • 2022-12-23
  • 2021-11-10
  • 2021-12-26
  • 2021-07-01
  • 2022-12-23
  • 2021-11-28
  • 2021-11-09
相关资源
相似解决方案