当前位置:网站首页>@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
边栏推荐
- [code source] daily question simple fields and
- uni-app小程序如何自定义标题内容(如何解决小程序标题不居中)
- *6-1 CCF 2015-03-2 数字排序
- Database operation language (DML)
- What is cerebral fissure?
- 【代码源】每日一题 非递减01序列
- 微信小程序初步了解及实现底部导航栏
- Numpy - Construction of array
- How to write Android switching interface with kotlin
- @3-2 CCF 2020-12-2 期末预测之最佳阈值
猜你喜欢

UI——无限轮播图和分栏控制器

【Android studio】批量数据导入到android 本地数据库

The shortest path problem Bellman Ford (single source shortest path) (illustration)

文件--初识

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

浏览器访问swagger失败,显示错误ERR_UNSAFE_PORT

Redis string 结构命令

Redis string structure command
![[gplt] 2022 popular lover (Floyd)](/img/30/c96306ca0a93f22598cec80edabd6b.png)
[gplt] 2022 popular lover (Floyd)

*6-1 CCF 2015-03-2 数字排序
随机推荐
OC--类别 扩展 协议与委托
@3-1 CCF 2020-09-1 scale detection point query
Go foundation 4
About C and OC
*7-2 CCF 2015-09-2 日期计算
OC--Foundation--字符串+日期和时间
cell的定义
main函数的一些操作
[code source] score split of one question per day
Flex 布局语法与用例
js中map()函数的使用
微信小程序初步了解及实现底部导航栏
正奇边形可划分成多少区域
*6-2 CCF 2015-03-3 Festival
OC--对象复制
App的生命周期和AppleDelegate,SceneDelegate
The shortest path problem Bellman Ford (single source shortest path) (illustration)
*6-2 CCF 2015-03-3 节日
作业7.21 约瑟夫环问题与进制转换
OC -- category extension agreement and delegation