当前位置:网站首页>Safety index of CCF 202012-1 period end forecast
Safety index of CCF 202012-1 period end forecast
2022-07-18 02:39:00 【Steal the mask and run away】
hi ! One more mouthful : Recently started preparing CSP authentication , So simply make a question brushing record , Urge yourself to make continuous efforts ! The solution is based on my understanding as a rookie , So although the code is correct , But it may not be the best solution , If the partners who study together have better solutions , We can share and learn together , Make progress together !
1、 Problem description :

2、 Sample format :


3、 Code :
#include<iostream>
using namespace std;
#define N 100000
int max(int x,int y);
int main(){
int n;
int w[N],s[N];
cin>>n;
int sum=0;
for(int i=0; i<n; i++)
{
cin>>w[i]>>s[i];
sum += w[i]*s[i];
}
int temp = max(0,sum);
cout<<temp<<endl;
return 0;
}
int max(int x,int y){
if(x>=y)
return x;
else
return y;
}
边栏推荐
- Relevant knowledge points
- 重空间轻安全,汉兰达和领克09,你选择谁
- 阿里云物联网平台搭建
- Alipay sandbox app login failed. There is no problem with the account
- 02 STM32CubeMX新建工程
- Google recommends using kotlin flow in MVVM architecture
- 03 按键控制LED
- 吴恩达撰文:发展 AI 职业生涯的重要步骤——项目实践
- 如何在项目中封装 Kotlin + Android Databinding
- Google recommends using sealed and remotemediator in projects
猜你喜欢

It should be so simple. Databinding and viewbinding

Nacos作为微服务架构的注册发现中心和配置中心

实现意识的远程直接电磁通信,东大团队联合新加坡国大等构建电磁脑机超表面,有望成为全新通信范式

Nacos as the registration and discovery center and configuration center of microservice architecture

手机怎样控制led显示屏发视频?

【招募】2022向光奖|年度ESG影响力投资奖正式启动!

MySQL的隔离级别

any类型转换之谜

PowerDesigner installation tutorial

云呐-动环监控水浸绳,非定位水浸监测绳
随机推荐
Dragon lizard community recruitment Promotion Ambassador & experience officer| Everyone can participate in open source
Open source real-time data warehouse Apache Doris graduated, how to go further in the future?
Kotlin 插件的落幕,ViewBinding 的崛起
558. 四叉树交集 : 简单递归运用题
Xu Shiwei: the road of go+ evolution
Follow up by Dutch depositors
17.5 million dollars, Oracle reached a settlement on the class action case!
03 key control LED
云呐-动环监控水浸绳,非定位水浸监测绳
2022-04-18 C# 第4篇——进阶
any类型转换之谜
2022-04-18 unity getting started 3 - script Basics
STM32 and Internet of things 02 network data sending and receiving
Google 推荐在项目中使用 sealed 和 RemoteMediator
Fragment (III) using fragment in viewpager
04 EXIT中断检测按键
05 USART sending and receiving data (query mode)
Isolation level of MySQL
Kotlin StateFlow 搜索功能的实践 DB + NetWork
一图看懂:国企数字化转型4个方向3个战略