当前位置:网站首页>@2-1 safety index predicted by CCF at the end of December 1, 2020
@2-1 safety index predicted by CCF at the end of December 1, 2020
2022-07-25 09:39:00 【Ye Xiaobai】
Safety index of final forecast
Title Description

Examples

Source code
#include<iostream>
using namespace std;
int main()
{
int n, h, k;
int sum = 0;
int y;
cin >> n;
while (n--)
{
cin >> h >> k;
sum += h * k;
}
y = max(0, sum);
cout << y << endl;
return 0;
}
About this problem
In fact, it is to multiply and add the numbers set in each group Last sum 0 Compare the size Then the output
边栏推荐
猜你喜欢

uni-app如何获取位置信息(经纬度)

Definition of cell

为什么要使用JSON.stringify()和JSON.parse()

【代码源】每日一题 国家铁路

How to customize the title content of uni app applet (how to solve the problem that the title of applet is not centered)

Prim minimum spanning tree (diagram)

*7-2 CCF 2015-09-2 日期计算

Voice chat app source code - produced by NASS network source code

*6-1 CCF 2015-03-2 数字排序

如何将Jar包部署到服务器,注:启动命令有无nohup有很大关系
随机推荐
[GKCTF 2021]easynode
pdf2Image Pdf文件存为jpg NodeJs实现
自定义 view 实现兑奖券背景[初级]
Learn redis Linux and install redis
学生管理系统(总结)
微信小程序实现轮播图(自动切换&手动切换)
最短路问题 Bellman-Ford(单源最短路径)(图解)
语音聊天app源码-钠斯网络源码出品
OC -- Foundation -- Collection
Redis installation (Ubuntu)
Object initialization
对象数据如何转化成数组
Redis set structure command
Read and write mongodb database files
cell的定义
【代码源】每日一题 农田划分
[code source] daily question tree
Swift创作天气APP
Redis string 结构命令
[HCTF 2018]admin